pub trait Free {
// Required method
unsafe fn free(&mut self);
}
Expand description
Custom code to free a handle.
This is similar to the Drop
trait, and may be used to implement Drop
, but allows handles
to be dropped depending on context.
Calls the handle’s free function.
§Safety
The handle must be owned by the caller and safe to free.