Home
last modified time | relevance | path

Searched refs:Caster (Results 1 – 3 of 3) sorted by relevance

/DragonOS/kernel/crates/intertrait/src/cast/
H A Dcast_ref.rs3 use crate::{caster, CastFrom, Caster};
75 CASTER_MAP.contains_key(&(self.type_id(), TypeId::of::<Caster<T>>())) in impls()
82 caster_map().contains_key(&(self.type_id(), TypeId::of::<Caster<T>>())) in impls()
/DragonOS/kernel/crates/intertrait/src/
H A Dlib.rs177 pub struct Caster<T: ?Sized + 'static> { struct
199 impl<T: ?Sized + 'static> Caster<T> { argument
205 ) -> Caster<T> { in new()
206 Caster::<T> { in new()
221 ) -> Caster<T> { in new_sync()
222 Caster::<T> { in new_sync()
239 fn caster<T: ?Sized + 'static>(type_id: TypeId) -> Option<&'static Caster<T>> { in caster()
243 .get(&(type_id, TypeId::of::<Caster<T>>())) in caster()
244 .and_then(|caster| caster.downcast_ref::<Caster<T>>()) in caster()
250 .get(&(type_id, TypeId::of::<Caster<T>>())) in caster()
[all …]
/DragonOS/kernel/crates/intertrait/macros/src/
H A Dgen_caster.rs17 ::intertrait::Caster::<dyn #trait_>::new_sync( in generate_caster()
27 ::intertrait::Caster::<dyn #trait_>::new( in generate_caster()