Searched refs:Caster (Results 1 – 3 of 3) sorted by relevance
3 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()
177 pub struct Caster<T: ?Sized + 'static> { struct199 impl<T: ?Sized + 'static> Caster<T> { argument205 ) -> 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 …]
17 ::intertrait::Caster::<dyn #trait_>::new_sync( in generate_caster()27 ::intertrait::Caster::<dyn #trait_>::new( in generate_caster()