#[non_exhaustive]pub struct TraitImpl<T>where
T: ?Sized,{
pub(crate) vtable: DynMetadata<T>,
}🔬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
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.vtable: DynMetadata<T>🔬This is a nightly-only experimental API. (
type_info #146922)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§
Source§impl<T> Eq for TraitImpl<T>
impl<T> Eq for TraitImpl<T>
Source§#[doc(hidden)]fn assert_fields_are_eq(&self)
#[doc(hidden)]fn assert_fields_are_eq(&self)
🔬This is a nightly-only experimental API. (
derive_eq_internals)1.0.0 · Source§#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
👎Deprecated since 1.95.0: implementation detail of
#[derive(Eq)]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
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize = _
#[doc(hidden)]const SIZE: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize = _
#[doc(hidden)]const ALIGN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment = _
#[doc(hidden)]const ALIGNMENT: Alignment = _
🔬This is a nightly-only experimental API. (
ptr_alignment_type #102070)Source§#[doc(hidden)]const IS_ZST: bool = _
#[doc(hidden)]const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const LAYOUT: Layout = _
#[doc(hidden)]const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const MAX_SLICE_LEN: usize = _
#[doc(hidden)]const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)The largest safe length for a
[Self]. Read more