Trait vtable::VTableMetaDropInPlace
source · [−]pub unsafe trait VTableMetaDropInPlace: VTableMeta {
unsafe fn drop_in_place(vtable: &Self::VTable, ptr: *mut u8) -> Layout;
unsafe fn dealloc(vtable: &Self::VTable, ptr: *mut u8, layout: Layout);
}
Expand description
Required Methods
Safety
The target ptr argument needs to be pointing to a an instance of the VTable after the call to this function, the memory is still there but no longer contains a valid object.