pub trait DynTrait {
type Vtable: 'static;
// Required methods
fn drop_in_place_fn(vtable: &Self::Vtable) -> Option<unsafe fn(NonNull<()>)>;
fn layout(vtable: &Self::Vtable) -> Layout;
}Expand description
A trait object with its associated vtable.
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.