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)
Object Safety§
This trait is not object safe.