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 duplicate 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 moreSource§impl Debug for DynDynTable
impl Debug for DynDynTable
Source§impl IntoIterator for DynDynTable
impl IntoIterator for DynDynTable
impl Copy for DynDynTable
Auto Trait Implementations§
impl Freeze for DynDynTable
impl RefUnwindSafe for DynDynTable
impl Send for DynDynTable
impl Sync for DynDynTable
impl Unpin for DynDynTable
impl UnwindSafe for DynDynTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more