Struct brotli::ffi::decompressor::ffi::alloc_util::SubclassableAllocator
source · pub struct SubclassableAllocator { /* private fields */ }
Implementations§
source§impl SubclassableAllocator
impl SubclassableAllocator
pub unsafe fn new(sub_alloc: CAllocator) -> SubclassableAllocator
Trait Implementations§
source§impl<Ty> Allocator<Ty> for SubclassableAllocatorwhere
Ty: Default + Clone,
impl<Ty> Allocator<Ty> for SubclassableAllocatorwhere Ty: Default + Clone,
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 RefUnwindSafe for SubclassableAllocator
impl Send for SubclassableAllocator
impl !Sync for SubclassableAllocator
impl Unpin 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