pub trait Free { // Required method unsafe fn free(&mut self); }
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.
Drop
Calls the handle’s free function.
The handle must be owned by the caller and safe to free.