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