pub unsafe trait MetaData {
type Data: Copy + Eq;
// Required methods
fn data(this: &Self) -> Self::Data;
unsafe fn compose(ptr: Ptr<u8>, data: Self::Data) -> Ptr<Self>;
}Expand description
A trait to abstract over the sizedness of types, and to access metadata about a type
If Custom DST lands and stablizes,
then it will replace MetaData
Required Associated Types§
Required Methods§
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.