Searched refs:parse_quote (Results 1 – 9 of 9) sorted by relevance
| /linux/rust/zerocopy-derive/derive/ |
| H A D | try_from_bytes.rs | 6 parse_quote, spanned::Spanned as _, Data, DataEnum, DataStruct, DataUnion, DeriveInput, Error, 101 let variant_struct = parse_quote! { in generate_variant_structs() 153 let variants_union = parse_quote! { in generate_variants_union() 232 let field: Box<syn::Type> = parse_quote!(()); in derive_is_bit_valid() 241 variant_id: parse_quote!({ #zerocopy_crate::ident_id!(#variant_ident) }), in derive_is_bit_valid() 246 field_id: parse_quote!({ #zerocopy_crate::ident_id!(#ident) }), in derive_is_bit_valid() 276 variant_id: parse_quote!({ #zerocopy_crate::ident_id!(#variant_ident) }), in derive_is_bit_valid() 281 field_id: parse_quote!({ #zerocopy_crate::ident_id!(#ident) }), in derive_is_bit_valid() 282 … invariants: parse_quote!((Aliasing, Alignment, #zerocopy_crate::invariant::Initialized)), in derive_is_bit_valid() 287 parse_quote!(Aliasing: #zerocopy_crate::invariant::Aliasing), in derive_is_bit_valid() [all …]
|
| H A D | from_bytes.rs | 5 parse_quote, Data, DataEnum, DataStruct, DataUnion, Error, Expr, ExprLit, ExprUnary, Lit, UnOp, 158 parse_quote! { #ty: #zerocopy_crate::FromZeros } in derive_from_zeros_enum()
|
| H A D | known_layout.rs | 5 use syn::{parse_quote, Data, Error, Type}; 183 let methods = make_methods(&parse_quote! { in derive_known_layout_for_repr_c_struct()
|
| /linux/rust/zerocopy-derive/ |
| H A D | util.rs | 16 parse_quote, spanned::Spanned as _, Data, DataEnum, DataStruct, DataUnion, DeriveInput, Error, 39 let mut path = parse_quote!(::zerocopy); in try_from_derive_input() 51 path = parse_quote!(::#path_lit); in try_from_derive_input() 358 Some(parse_quote!(<#field, #variant_id, #field_id>)) in to_tokens() 361 Some(parse_quote!(<#field, #invariants, #variant_id, #field_id>)) in to_tokens() 385 Self::Sized => parse_quote!(#core::marker::#self), in crate_path() 386 _ => parse_quote!(#zerocopy_crate::#self), in crate_path() 557 parse_quote!(#ty: #(#traits)+*) in build() 603 parse_quote! { in build() 617 Some(bound_tt(&parse_quote!(Self), traits.iter().cloned(), self.ctx)) in build() [all …]
|
| H A D | repr.rs | 681 use syn::parse_quote; 729 let attr: Attribute = parse_quote!($(#[$attr])*); in test()
|
| /linux/rust/syn/ |
| H A D | parse_quote.rs | 82 macro_rules! parse_quote { macro 84 $crate::__private::parse_quote($crate::__private::quote::quote!($($tt)*)) 116 $crate::__private::parse_quote($crate::__private::quote::quote_spanned!($span=> $($tt)*))
|
| H A D | export.rs | 52 pub use crate::parse_quote::parse as parse_quote;
|
| H A D | lib.rs | 480 mod parse_quote; module
|
| /linux/rust/pin-init/internal/src/ |
| H A D | init.rs | 8 parse_quote, 100 parse_quote!(::core::convert::Infallible)
|