Trait glib::boxed::BoxedMemoryManager[][src]

pub trait BoxedMemoryManager<T>: 'static {
    unsafe fn copy(ptr: *const T) -> *mut T;
unsafe fn free(ptr: *mut T);
unsafe fn init(ptr: *mut T);
unsafe fn clear(ptr: *mut T); }
Expand description

Memory management functions for a boxed type.

Required methods

Makes a copy.

Frees the object.

Initializes an already allocated object.

Clears and frees all memory of the object, but not the object itself.

Implementors