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§
Sourceconst TYPE: PhantomData<Self> = PhantomData
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.