BuildDynMeta

Trait BuildDynMeta 

Source
pub unsafe trait BuildDynMeta<Trait>
where Self: Sized, Trait: PlainDyn + ?Sized,
{ 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§

Source

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§

Source

fn metadata() -> Trait::Metadata

Gets the pointer metadata necessary to call trait 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.

Implementors§