Home
last modified time | relevance | path

Searched refs:TokenStream (Results 1 – 5 of 5) sorted by relevance

/DragonOS/kernel/crates/intertrait/macros/src/
H A Dlib.rs3 use proc_macro::TokenStream;
66 pub fn cast_to(args: TokenStream, input: TokenStream) -> TokenStream { in cast_to() argument
134 pub fn castable_to(input: TokenStream) -> TokenStream { in castable_to() argument
143 .collect::<proc_macro2::TokenStream>() in castable_to()
H A Ditem_type.rs2 use proc_macro2::TokenStream;
11 pub fn process(flags: &HashSet<Flag>, paths: Vec<Path>, input: DeriveInput) -> TokenStream { in process() argument
H A Ditem_impl.rs2 use proc_macro2::TokenStream;
16 pub fn process(flags: &HashSet<Flag>, input: ItemImpl) -> TokenStream { in process() argument
H A Dgen_caster.rs3 use proc_macro2::TokenStream;
11 pub fn generate_caster(ty: &impl ToTokens, trait_: &impl ToTokens, sync: bool) -> TokenStream { in generate_caster() argument
/DragonOS/kernel/crates/unified-init/macros/src/
H A Dlib.rs4 use proc_macro::TokenStream;
43 pub fn unified_init(args: TokenStream, input: TokenStream) -> TokenStream { in unified_init() argument
49 fn do_unified_init(args: TokenStream, input: TokenStream) -> syn::Result<proc_macro2::TokenStream> { in do_unified_init() argument
65 let mut output = proc_macro2::TokenStream::new(); in do_unified_init()
165 ) -> syn::Result<proc_macro2::TokenStream> { in generate_unified_initializer() argument