pub trait ClassDealloc {
// Provided method
unsafe fn dealloc(instance: *mut ConfObject) -> Result<()> { ... }
}
Expand description
A class instance can be deallocated
Provided Methods§
sourceunsafe fn dealloc(instance: *mut ConfObject) -> Result<()>
unsafe fn dealloc(instance: *mut ConfObject) -> Result<()>
Called after all objects are deinitialized, this should free the allocated object using mm_free
§Safety
This method is unsafe because it may dereference a raw pointer. It is up to the implementation of this method to ensure that the pointer is valid.
Object Safety§
This trait is not object safe.