#[non_exhaustive]pub struct TraitImpl<T>where
T: ?Sized,{ /* private fields */ }🔬This is a nightly-only experimental API. (
type_info #146922)Expand description
Info of a trait implementation, you can retrieve the vtable with Self::get_vtable
Implementations§
Source§impl<T> TraitImpl<T>where
T: ?Sized,
impl<T> TraitImpl<T>where
T: ?Sized,
Sourcepub const fn get_vtable(&self) -> DynMetadata<T>
🔬This is a nightly-only experimental API. (type_info #146922)
pub const fn get_vtable(&self) -> DynMetadata<T>
type_info #146922)Gets the raw vtable for type reflection mapping
Trait Implementations§
impl<T> Eq for TraitImpl<T>
impl<T> StructuralPartialEq for TraitImpl<T>where
T: ?Sized,
Auto Trait Implementations§
impl<T> Freeze for TraitImpl<T>where
T: ?Sized,
impl<T> !RefUnwindSafe for TraitImpl<T>
impl<T> Send for TraitImpl<T>where
T: ?Sized,
impl<T> Sync for TraitImpl<T>where
T: ?Sized,
impl<T> Unpin for TraitImpl<T>where
T: ?Sized,
impl<T> !UnsafeUnpin for TraitImpl<T>
impl<T> !UnwindSafe for TraitImpl<T>
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