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

Memory management functions for a boxed type.

Required Methods§

source

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

Makes a copy.

source

unsafe fn free(ptr: *mut T)

Frees the object.

Object Safety§

This trait is not object safe.

Implementors§