Trait mbox::free::Free
[−]
[src]
pub trait Free { fn free(ptr: *mut Self); }
Implemented for pointers which can be freed.
Required Methods
fn free(ptr: *mut Self)
Drops the content pointed by this pointer and frees it.
Do not call this method if the pointer has been freed. Users of this trait should maintain a
flag to track if the pointer has been freed or not (the Rust compiler will automatically do
this with a Drop
type).
Implementations on Foreign Types
impl<T> Free for [T]
[src]
impl Free for str
[src]
Implementors
impl<T> Free for T