pub struct SubclassableAllocator {
alloc: CAllocator,
}Fields§
§alloc: CAllocatorImplementations§
Source§impl SubclassableAllocator
impl SubclassableAllocator
pub unsafe fn new(sub_alloc: CAllocator) -> Self
Trait Implementations§
Source§impl<Ty: Sized + Default + Clone> Allocator<Ty> for SubclassableAllocator
Available on crate feature std only.
impl<Ty: Sized + Default + Clone> Allocator<Ty> for SubclassableAllocator
Available on crate feature
std only.type AllocatedMemory = MemoryBlock<Ty>
fn alloc_cell(&mut self, size: usize) -> MemoryBlock<Ty>
fn free_cell(&mut self, bv: MemoryBlock<Ty>)
Auto Trait Implementations§
impl Freeze for SubclassableAllocator
impl RefUnwindSafe for SubclassableAllocator
impl Send for SubclassableAllocator
impl !Sync for SubclassableAllocator
impl Unpin for SubclassableAllocator
impl UnsafeUnpin for SubclassableAllocator
impl UnwindSafe for SubclassableAllocator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more