Trait vtable::VTableMetaDrop
source · [−]pub unsafe trait VTableMetaDrop: VTableMeta {
unsafe fn drop(ptr: *mut Self::Target);
fn new_box<X: HasStaticVTable<Self>>(value: X) -> VBox<Self>;
}
Expand description
Required Methods
Safety
ptr
needs to be pointing to a valid allocated pointer
fn new_box<X: HasStaticVTable<Self>>(value: X) -> VBox<Self>
fn new_box<X: HasStaticVTable<Self>>(value: X) -> VBox<Self>
allocate a new VBox