Trait glib::boxed::BoxedMemoryManager

source ·
pub trait BoxedMemoryManager: 'static {
    type Target;

    // Required methods
    unsafe fn copy(ptr: *const Self::Target) -> *mut Self::Target;
    unsafe fn free(ptr: *mut Self::Target);
}
Expand description

Memory management functions for a boxed type.

Required Associated Types§

Required Methods§

source

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

Makes a copy.

source

unsafe fn free(ptr: *mut Self::Target)

Frees the object.

Object Safety§

This trait is not object safe.

Implementors§