VtableFor

Trait VtableFor 

Source
pub unsafe trait VtableFor<T>: Copy + 'static {
    const VTABLE: &'static Self;
}
Expand description

§Safety

Self must be layout compatible with DropVtable

Required Associated Constants§

Source

const VTABLE: &'static Self

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§

Source§

impl<T> VtableFor<T> for DropVtable

Source§

const VTABLE: &'static Self