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
Required Methods§
Sourceunsafe fn drop(ptr: *mut Self::Target)
unsafe fn drop(ptr: *mut Self::Target)
§Safety
ptr needs to be pointing to a valid allocated pointer
Sourcefn new_box<X: HasStaticVTable<Self>>(value: X) -> VBox<Self>
fn new_box<X: HasStaticVTable<Self>>(value: X) -> VBox<Self>
allocate a new VBox
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.