Searched refs:Flag (Results 1 – 4 of 4) sorted by relevance
/DragonOS/kernel/crates/intertrait/macros/src/ |
H A D | args.rs | 8 pub enum Flag { enum 12 impl Flag { impl 15 "sync" => Ok(Flag::Sync), in from() 25 pub flags: HashSet<Flag>, 42 if !flags.insert(Flag::from(&ident)?) { in parse()
|
H A D | item_type.rs | 8 use crate::args::Flag; 11 pub fn process(flags: &HashSet<Flag>, paths: Vec<Path>, input: DeriveInput) -> TokenStream { in process() argument 24 .flat_map(|t| generate_caster(ident, &t, flags.contains(&Flag::Sync))) in process()
|
H A D | item_impl.rs | 13 use crate::args::Flag; 16 pub fn process(flags: &HashSet<Flag>, input: ItemImpl) -> TokenStream { in process() argument 34 generate_caster(self_ty, &path, flags.contains(&Flag::Sync)) in process()
|
H A D | lib.rs | 7 use args::{Casts, Flag, Targets}; 141 .map(|t| generate_caster(&ty, t, flags.contains(&Flag::Sync))) in castable_to()
|