pub trait Allocable<T: Copy, AllocT: Allocator<T>> {
// Required methods
fn new(m: &mut AllocT, init: T) -> Self;
fn new_uninit(m: &mut AllocT) -> Self;
fn free(&mut self, m: &mut AllocT);
}
Required Methods§
fn new(m: &mut AllocT, init: T) -> Self
fn new_uninit(m: &mut AllocT) -> Self
fn free(&mut self, m: &mut AllocT)
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.