pub unsafe trait BuildDynMeta<Trait>{
const STATIC_VTABLE: Trait::StaticVTable;
// Required method
fn metadata() -> Trait::Metadata;
}Expand description
Builds the tinydyn trait metadata for a given type.
This metadata is shared by dyn Trait [+ Send] [+ Sync].
Implemented for LocalNewtype<T> where T implements the Trait.
Required Associated Constants§
Sourceconst STATIC_VTABLE: Trait::StaticVTable
const STATIC_VTABLE: Trait::StaticVTable
The contents of the vtable for this type. If the metadata is a function pointer, this is unused.
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.