Home
last modified time | relevance | path

Searched refs:type_id (Results 1 – 7 of 7) sorted by relevance

/DragonOS-0.1.9/kernel/src/libs/intertrait/src/cast/
Dcast_ref.rs68 let caster = caster::<T>(any.type_id())?; in cast()
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()
Dcast_mut.rs38 let caster = caster::<T>((*any).type_id())?; in cast()
Dcast_arc.rs40 match caster::<T>((*self).type_id()) { in cast()
Dcast_box.rs39 match caster::<T>((*self).type_id()) { in cast()
Dcast_rc.rs39 match caster::<T>((*self).type_id()) { in cast()
/DragonOS-0.1.9/kernel/src/libs/intertrait/src/
Dlib.rs109 let (type_id, caster) = f();
110 ((type_id, (*caster).type_id()), caster)
155 let (type_id, caster) = f(); in init_caster_map()
156 ((type_id, (*caster).type_id()), caster) in init_caster_map()
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()
250 .get(&(type_id, TypeId::of::<Caster<T>>())) in caster()
387 let type_id = TypeId::of::<TestStruct>(); in create_test_caster() localVariable
395 (type_id, caster) in create_test_caster()
/DragonOS-0.1.9/kernel/src/exception/
Dmanage.rs404 h.type_id() == (&DefaultPrimaryIrqHandler as &dyn IrqHandler).type_id() in inner_setup_irq()