Home
last modified time | relevance | path

Searched refs:it (Results 1 – 6 of 6) sorted by relevance

/rust/macros/
A Dhelpers.rs5 pub(crate) fn try_ident(it: &mut token_stream::IntoIter) -> Option<String> { in try_ident()
6 if let Some(TokenTree::Ident(ident)) = it.next() { in try_ident()
14 if let Some(TokenTree::Literal(literal)) = it.next() { in try_literal()
22 try_literal(it).and_then(|string| { in try_string()
37 pub(crate) fn expect_ident(it: &mut token_stream::IntoIter) -> String { in expect_ident()
38 try_ident(it).expect("Expected Ident") in expect_ident()
41 pub(crate) fn expect_punct(it: &mut token_stream::IntoIter) -> char { in expect_punct()
50 try_string(it).expect("Expected string") in expect_string()
54 let string = try_string(it).expect("Expected string"); in expect_string_ascii()
67 pub(crate) fn expect_end(it: &mut token_stream::IntoIter) { in expect_end()
[all …]
A Dconcat_idents.rs7 fn expect_ident(it: &mut token_stream::IntoIter) -> Ident { in expect_ident()
8 if let Some(TokenTree::Ident(ident)) = it.next() { in expect_ident()
16 let mut it = ts.into_iter(); in concat_idents() variables
17 let a = expect_ident(&mut it); in concat_idents()
18 assert_eq!(expect_punct(&mut it), ','); in concat_idents()
19 let b = expect_ident(&mut it); in concat_idents()
20 assert!(it.next().is_none(), "only two idents can be concatenated"); in concat_idents()
A Dmodule.rs8 let group = expect_group(it); in expect_string_array()
11 let mut it = group.stream().into_iter(); in expect_string_array() variables
13 while let Some(val) = try_string(&mut it) { in expect_string_array()
16 match it.next() { in expect_string_array()
104 fn parse(it: &mut token_stream::IntoIter) -> Self { in parse()
120 let key = match it.next() { in parse()
130 assert_eq!(expect_punct(it), ':'); in parse()
143 assert_eq!(expect_punct(it), ','); in parse()
148 expect_end(it); in parse()
172 let mut it = ts.into_iter(); in module() variables
[all …]
/rust/pin-init/
A DREADME.md21 There are cases when you want to in-place initialize a struct. For example when it is very big
22 and moving it from the stack is not an option, because it is bigger than the stack itself.
23 Another reason would be that you need the address of the object to initialize it. This stands
25 it into it's final memory location. For more information, see
70 requires it to be pinned to be locked and thus is a prime candidate for using this library.
141 - when the closure returns `Ok(())`, then it has completed the initialization successfully, so
184 // - when the closure returns `Ok(())`, then it has successfully initialized and
186 // - when it returns `Err(e)`, then it has cleaned up before
196 // Try to enable it.
A DCONTRIBUTING.md15 If the issue is a soundness issue, please privately report it as a security vulnerability via the
33 `pin-init` is used by the Linux kernel and all commits are synchronized to it. For this reason, the
51 Each commit should be a single, logically cohesive change. Of course it's best to keep the changes
/rust/
A Dbindgen_parameters23 # warning. We don't need to peek into it anyway.

Completed in 7 milliseconds