Home
last modified time | relevance | path

Searched refs:Flag (Results 1 – 4 of 4) sorted by relevance

/DragonOS/kernel/crates/intertrait/macros/src/
H A Dargs.rs8 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 Ditem_type.rs8 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 Ditem_impl.rs13 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 Dlib.rs7 use args::{Casts, Flag, Targets};
141 .map(|t| generate_caster(&ty, t, flags.contains(&Flag::Sync))) in castable_to()