Skip to main content

TraitImpl

Struct TraitImpl 

Source
#[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,

Source

pub const fn get_vtable(&self) -> DynMetadata<T>

🔬This is a nightly-only experimental API. (type_info #146922)

Gets the raw vtable for type reflection mapping

Trait Implementations§

Source§

impl<T> Debug for TraitImpl<T>
where T: Debug + ?Sized,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<T> Eq for TraitImpl<T>
where T: Eq + ?Sized,

Source§

impl<T> PartialEq for TraitImpl<T>
where T: PartialEq + ?Sized,

Source§

fn eq(&self, other: &TraitImpl<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T> StructuralPartialEq for TraitImpl<T>
where T: PartialEq + ?Sized,

Auto Trait Implementations§

§

impl<T> !RefUnwindSafe for TraitImpl<T>

§

impl<T> !UnwindSafe for TraitImpl<T>

§

impl<T> Freeze for TraitImpl<T>
where T: ?Sized,

§

impl<T> Send for TraitImpl<T>
where T: ?Sized,

§

impl<T> Sync for TraitImpl<T>
where T: ?Sized,

§

impl<T&g