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

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); }

Memory management functions for a boxed type.

Required methods

unsafe fn copy(ptr: *const T) -> *mut T

Makes a copy.

unsafe fn free(ptr: *mut T)

Frees the object.

unsafe fn init(ptr: *mut T)

Initializes an already allocated object.

unsafe fn clear(ptr: *mut T)

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

Loading content...

Implementors

Loading content...