Struct dyn_dyn::DynDynTable
source · pub struct DynDynTable { /* private fields */ }Expand description
A table of trait object types that a concrete type can be downcast to.
Implementations§
source§impl DynDynTable
impl DynDynTable
sourcepub fn find_untyped(&self, type_id: TypeId) -> Option<AnyDynMetadata>
pub fn find_untyped(&self, type_id: TypeId) -> Option<AnyDynMetadata>
Finds the metadata corresponding to the type with the provided TypeId in this table or None if no such metadata is present.
sourcepub fn find<D: ?Sized + DynDynCastTarget + 'static>(
&self
) -> Option<DynMetadata<D>>
pub fn find<D: ?Sized + DynDynCastTarget + 'static>( &self ) -> Option<DynMetadata<D>>
Finds the metadata corresponding to the trait D in this table or None if no such metadata is present.
sourcepub fn into_slice(self) -> &'static [DynDynTableEntry]
pub fn into_slice(self) -> &'static [DynDynTableEntry]
Returns a reference to the slice of entries in this table
Trait Implementations§
source§impl Clone for DynDynTable
impl Clone for DynDynTable
source§fn clone(&self) -> DynDynTable
fn clone(&self) -> DynDynTable
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more