Searched refs:BoxedCaster (Results 1 – 2 of 2) sorted by relevance
/DragonOS/kernel/crates/intertrait/macros/src/ |
H A D | gen_caster.rs | 43 fn #fn_ident() -> (::std::any::TypeId, ::intertrait::BoxedCaster) { in generate_caster() 49 fn #fn_ident() -> (::core::any::TypeId, ::intertrait::BoxedCaster) { in generate_caster()
|
/DragonOS/kernel/crates/intertrait/src/ |
H A D | lib.rs | 85 pub type BoxedCaster = Box<dyn Any + Send + Sync>; typedef 98 pub static CASTERS: [fn() -> (TypeId, BoxedCaster)] = [..]; 104 static CASTER_MAP: once_cell::sync::Lazy<HashMap<(TypeId, TypeId), BoxedCaster, BuildFastHasher>> = 122 static mut CASTER_MAP: Option<HashMap<(TypeId, TypeId), BoxedCaster, BuildFastHasher>> = None; 125 pub fn caster_map() -> &'static HashMap<(TypeId, TypeId), BoxedCaster, BuildFastHasher> { in caster_map() 371 use crate::{BoxedCaster, CastFromSync}; 377 static TEST_CASTER: fn() -> (TypeId, BoxedCaster) = create_test_caster; 386 fn create_test_caster() -> (TypeId, BoxedCaster) { in create_test_caster()
|