pub unsafe trait VTableMetaDrop: VTableMeta {
    // Required methods
    unsafe fn drop(ptr: *mut Self::Target);
    fn new_box<X: HasStaticVTable<Self>>(value: X) -> VBox<Self>;
}
Expand description

This trait is implemented by the #[vtable] macro.

It is implemented if the macro has a “drop” function.

§Safety

Only the #[vtable] macro should implement this trait.

Required Methods§

source

unsafe fn drop(ptr: *mut Self::Target)

§Safety

ptr needs to be pointing to a valid allocated pointer

source

fn new_box<X: HasStaticVTable<Self>>(value: X) -> VBox<Self>

allocate a new VBox

Object Safety§

This trait is not object safe.

Implementors§