glib::boxed

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§