[][src]Struct abi_stable::erased_types::TypeInfo

#[repr(C)]pub struct TypeInfo {
    pub size: usize,
    pub alignment: usize,
    pub type_name: Constructor<RStr<'static>>,
    pub module: RStr<'static>,
    pub package: RStr<'static>,
    pub package_version: VersionStrings,
    // some fields omitted
}

Metadata stored in the vtable of DynTrait<_>

Fields

size: usizealignment: usizetype_name: Constructor<RStr<'static>>module: RStr<'static>package: RStr<'static>package_version: VersionStrings

Implementations

impl TypeInfo[src]

pub fn is_compatible(&self, other: &Self) -> bool[src]

Whether the self is the TypeInfo for the same type as other

Trait Implementations

impl Debug for TypeInfo[src]

impl Display for TypeInfo[src]

impl Eq for TypeInfo[src]

impl GetStaticEquivalent_ for TypeInfo[src]

type StaticEquivalent = _static_TypeInfo

impl PartialEq<TypeInfo> for TypeInfo[src]

impl StableAbi for TypeInfo[src]

type IsNonZeroType = False

Whether this type has a single invalid bit-pattern. Read more

impl StructuralEq for TypeInfo[src]

impl StructuralPartialEq for TypeInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> GetWithMetadata for T[src]

type ForSelf = WithMetadata_<T, T>

This is always WithMetadata_<Self, Self>

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SelfOps for T where
    T: ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<This> TransmuteElement for This where
    This: ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The error type returned when the conversion fails.

impl<T> TypeIdentity for T where
    T: ?Sized
[src]

type Type = T

The same type as Self. Read more