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§