| /linux/rust/syn/ |
| H A D | custom_punctuation.rs | 81 ($ident:ident, $($tt:tt)+) => { 82 pub struct $ident { 89 pub fn $ident<__S: $crate::__private::IntoSpans<$crate::custom_punctuation_repr!($($tt)+)>>( 91 ) -> $ident { 93 $ident { 99 impl $crate::__private::Default for $ident { 101 $ident($crate::__private::Span::call_site()) 105 $crate::impl_parse_for_custom_punctuation!($ident, $($tt)+); 106 $crate::impl_to_tokens_for_custom_punctuation!($ident, $($tt)+); 107 $crate::impl_clone_for_custom_punctuation!($ident, $($tt)+); [all …]
|
| H A D | custom_keyword.rs | 93 ($ident:ident) => { 95 pub struct $ident { 102 pub fn $ident<__S: $crate::__private::IntoSpans<$crate::__private::Span>>( 104 ) -> $ident { 105 $ident { 111 impl $crate::__private::Default for $ident { 113 $ident { 119 $crate::impl_parse_for_custom_keyword!($ident); 120 $crate::impl_to_tokens_for_custom_keyword!($ident); 121 $crate::impl_clone_for_custom_keyword!($ident); [all …]
|
| H A D | macros.rs | 10 $pub:ident $struct:ident $name:ident #full $body:tt 33 $pub:ident $struct:ident $name:ident $body:tt 46 $pub:ident $enum:ident $name:ident $body:tt 58 $pub:ident $enum:ident $name:ident $body:tt 74 $name:ident { 78 $variant:ident $( ($member:ident) )*, 90 ($name:ident::Verbatim, $member:ident) => {}; 92 ($name:ident::$variant:ident, $member:ident) => { 104 ($($arms:tt)*) $tokens:ident $name:ident { 107 $variant:ident, [all …]
|
| H A D | lifetime.rs | 22 pub ident: Ident, field 52 if !crate::ident::xid_ok(&symbol[1..]) { in new() 58 ident: Ident::new(&symbol[1..], span), in new() 64 .join(self.ident.span()) in span() 70 self.ident.set_span(span); in set_span() 77 self.ident.fmt(formatter) in fmt() 85 ident: self.ident.clone(), in clone() 92 self.ident.eq(&other.ident) in eq() 106 self.ident.cmp(&other.ident) in cmp() 112 self.ident.hash(h); in hash() [all …]
|
| H A D | ident.rs | 18 ($token:ident) => { 61 fn accept_as_ident(ident: &Ident) -> bool { in accept_as_ident() 62 match ident.to_string().as_str() { in accept_as_ident() 81 if let Some((ident, rest)) = cursor.ident() { in parse() 82 if accept_as_ident(&ident) { in parse() 83 Ok((ident, rest)) in parse() 87 ident, in parse() 99 if let Some((ident, _rest)) = cursor.ident() { in peek() 100 accept_as_ident(&ident) in peek()
|
| H A D | data.rs | 5 use crate::ident::Ident; 18 pub ident: Ident, 196 pub ident: Option<Ident>, 214 let member = match &field.ident { in next() 215 Some(ident) => Member::Named(ident.clone()), in next() 248 use crate::ident::Ident; 264 let ident: Ident = input.parse()?; in parse() localVariable 294 ident, in parse() 331 let ident = if unnamed_field { in parse_named() localVariable 355 ident: Some(ident), in parse_named() [all …]
|
| H A D | path.rs | 7 use crate::ident::Ident; 65 pub fn is_ident<I>(&self, ident: &I) -> bool in is_ident() 71 Some(id) => id == ident, in is_ident() 89 Some(&self.segments[0].ident) in get_ident() 101 self.segments.first().unwrap().ident.span(), in require_ident() 102 self.segments.last().unwrap().ident.span(), in require_ident() 113 pub ident: Ident, 122 fn from(ident: T) -> Self { in from() 124 ident: ident.into(), in from() 215 pub ident: Ident, [all …]
|
| H A D | item.rs | 8 use crate::ident::Ident; 110 pub ident: Ident, 127 pub ident: Ident, 142 pub ident: Ident, 196 pub ident: Option<Ident>, 210 pub ident: Ident, 224 pub ident: Ident, 240 pub ident: Ident, 257 pub ident: Ident, 273 pub ident: Ident, [all …]
|
| H A D | derive.rs | 6 use crate::ident::Ident; 17 pub ident: Ident, 75 use crate::ident::Ident; 90 let ident = input.parse::<Ident>()?; in parse() localVariable 96 ident, in parse() 109 let ident = input.parse::<Ident>()?; in parse() localVariable 115 ident, in parse() 128 let ident = input.parse::<Ident>()?; in parse() localVariable 134 ident, in parse() 230 self.ident.to_tokens(tokens); in to_tokens()
|
| H A D | buffer.rs | 44 TokenTree::Ident(ident) => entries.push(Entry::Ident(ident)), in recursive_new() 191 pub fn ident(mut self) -> Option<(Ident, Cursor<'a>)> { in ident() method 194 Entry::Ident(ident) => Some((ident.clone(), unsafe { self.bump_ignore_group() })), in ident() 228 let (ident, rest) = next.ident()?; in lifetime() 231 ident, in lifetime() 310 Entry::Ident(ident) => (ident.clone().into(), 1), in token_tree() 325 Entry::Ident(ident) => ident.span(), in span()
|
| H A D | token.rs | 166 ($display:literal $($path:ident)::+ $get:ident) => { 204 ($($token:literal pub struct $name:ident)*) => { 306 ($name:ident/1) => { 322 ($name:ident/$len:literal) => {}; 326 ($($token:literal pub struct $name:ident/$len:tt #[doc = $usage:literal])*) => { 403 ($($token:literal pub struct $name:ident/$len:tt #[doc = $usage:literal])*) => { 445 ($($delim:ident pub struct $name:ident #[$doc:meta])*) => { 540 if let Some((ident, rest)) = cursor.ident() { in parse() 541 if ident == "_" { in parse() 542 return Ok((Underscore(ident.span()), rest)); in parse() [all …]
|
| H A D | meta.rs | 381 let start_span = self.path.segments[0].ident.span(); in error() 411 let ident = Ident::parse_any(input)?; in parse_meta_path() localVariable 412 segments.push_value(PathSegment::from(ident)); in parse_meta_path() 423 let ident = Ident::parse_any(input)?; in parse_meta_path() localVariable 424 segments.push_value(PathSegment::from(ident)); in parse_meta_path()
|
| /linux/rust/quote/ |
| H A D | lib.rs | 507 (# $var:ident) => {{ 656 ($span:expr=> # $var:ident) => {{ 689 ($call:ident! $extra:tt $($tts:tt)*) => { 700 ($call:ident! $extra:tt ($($b1:tt)*) ($($curr:tt)*)) => { 710 ($call:ident! $extra:tt $b1:tt ( $($inner:tt)* )) => { 714 ($call:ident! $extra:tt $b1:tt [ $($inner:tt)* ]) => { 718 ($call:ident! $extra:tt $b1:tt { $($inner:tt)* }) => { 722 ($call:ident!($($extra:tt)*) # $var:ident) => { 726 ($call:ident! $extra:tt $b1:tt $curr:tt) => {}; 732 ($has_iter:ident $var:ident) => { [all …]
|
| /linux/rust/zerocopy/src/util/ |
| H A D | macros.rs | 25 ($(#[$attr:meta])* $ty:ty: $trait:ident $(; |$candidate:ident| $is_safe:expr)?) => {{ 41 // ($(#[$attrs:meta])* $ty:ty: $($traits:ident),*) => { 53 ($(#[$attrs:meta])* $ty:ty: $($traits:ident),*) => { 57 (@impl_traits_with_packed_attrs $attrs:tt $ty:ty: $($traits:ident),*) => {{ 61 (@unpack_attrs { $(#[$attrs:meta])* } $ty:ty: $traits:ident) => { 68 // ident match for `$tyvar:ident`). 92 const $constname:ident : $constty:ident [all...] |
| /linux/rust/macros/ |
| H A D | quote.rs | |
| H A D | vtable.rs | 41 .any(|i| matches!(i, TraitItem::Type(t) if t.ident == "OwnerModule")) in vtable() 54 let name = &fn_item.sig.ident; in vtable() 115 defined_items.insert(const_item.ident.clone()); 118 defined_items.insert(type_item.ident.clone()); 139 let name = &fn_item.sig.ident;
|
| /linux/rust/pin-init/src/ |
| H A D | macros.rs | |
| /linux/rust/kernel/sync/atomic/ |
| H A D | internal.rs | 106 $func:ident($($arg:ident : $arg_type:ty),*) $(-> $ret:ty)? 115 $func:ident [$variant:ident $($rest:ident)*]($($arg_sig:tt)*) $(-> $ret:ty)? 131 $func:ident []($($arg_sig:tt)*) $(-> $ret:ty)? 144 ($ctype:ident) $func:ident($($arg:ident: $arg_type:ty),*) $(-> $ret:ty)? { 164 ($ctype:ident) [all...] |
| /linux/tools/net/sunrpc/xdrgen/ |
| H A D | xdr_ast.py | 657 ident = children[0] 659 return _XdrConstant(ident.symbol, value, line=ident.line, column=ident.column) 669 ident = body.children[i] 673 ident.symbol, value, line=ident.line, column=ident.column 687 ident = children[0] 691 ident [all...] |
| /linux/rust/pin-init/internal/src/ |
| H A D | init.rs | 88 ident: Ident, 284 Some(This { ident, .. }) => quote_spanned! { Span::mixed_site() => 287 let #ident = unsafe { ::core::ptr::NonNull::new_unchecked(slot) }; 358 && segments[0].ident == "Zeroable" 360 && segments[1].ident == "init_zeroed" 405 let ident = member.as_ident(); 406 let span = Span::mixed_site().located_at(ident.span()); 420 (unsafe { #data.#ident(slot) }) 439 let guard = format_ident!("__{ident}_guard", span = span); 487 Member::Named(ident) 28 ident: Ident, global() field 493 let ident = input.parse()?; global() localVariable [all...] |
| /linux/rust/zerocopy/src/ |
| H A D | byteorder.rs | 170 ($name:ident, $native:ident) => { 182 ($name:ident, $native:ident, "floating point number") => { 194 ($name:ident, $native:ident, "unsigned integer") => { 197 ($name:ident, $native:ident, "signed integer") => { 200 ($name:ident, $native:ident, [all...] |
| /linux/rust/zerocopy-derive/derive/ |
| H A D | try_from_bytes.rs | 48 .ident in generate_tag_consts() 159 let name = &variant.ident; in generate_variants_union() 187 let tag = tag_ident(&variant.ident); 460 let ident = ident!(("__z{}", ident), ident.span()); derive_has_field_struct_union() localVariable
|
| H A D | known_layout.rs | 126 let ident = &ctx.ast.ident; in derive_known_layout_for_repr_c_struct() localVariable 137 // Generate a valid ident for a type-level handle to a field of a in derive_known_layout_for_repr_c_struct() 139 let field_index = |name: &TokenStream| ident!(("__Zerocopy_Field_{}", name), ident.span()); in derive_known_layout_for_repr_c_struct() 153 // SAFETY: `#ty` is the type of `#ident`'s field at `#idx`. in derive_known_layout_for_repr_c_struct() 162 unsafe impl #impl_generics #zerocopy_crate::util::macro_util::Field<#idx> for #ident #ty_generics in derive_known_layout_for_repr_c_struct() 179 <#ident #ty_generics as in derive_known_layout_for_repr_c_struct() 207 <#ident #ty_generics as in derive_known_layout_for_repr_c_struct() 238 type PointerMetadata = <#ident #ty_generic in derive_known_layout_for_repr_c_struct() [all...] |
| /linux/rust/kernel/ |
| H A D | init.rs | |
| /linux/rust/ |
| H A D | compiler_builtins.rs | 29 ($reason: tt, { $($ident: ident, )* }) => { 32 #[export_name = concat!("__rust", stringify!($ident))] 33 pub extern "C" fn $ident() {
|