[][src]Trait vtable::VTableMetaDrop

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

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

It is implemented if the macro has a "drop" function.

Required methods

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

Safety: the Target needs to be pointing to a valid allocated pointer

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

Loading content...

Implementors

Loading content...