GetType

Trait GetType 

Source
pub trait GetType {
    const TYPE: PhantomData<Self> = PhantomData;
}
Expand description

GetType trait implements asssociated constant for every type and this associated constant provides a metatype value that’s a type’s type value of any type that is ?Sized

Provided Associated Constants§

Source

const TYPE: PhantomData<Self> = PhantomData

Acts as a metatype value

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: ?Sized> GetType for T