pub trait ClassFinalize {
// Provided method
unsafe fn finalize(_instance: *mut ConfObject) -> Result<()> { ... }
}
Expand description
A class can be finalized
Provided Methods§
sourceunsafe fn finalize(_instance: *mut ConfObject) -> Result<()>
unsafe fn finalize(_instance: *mut ConfObject) -> Result<()>
Object can do final initialization that requires attribute values, but should avoid calling interface methods on other objects. The default implementation of this method does nothing
§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.