Struct brotli_decompressor::ffi::alloc_util::SubclassableAllocator
source · pub struct SubclassableAllocator { /* private fields */ }
Implementations§
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
impl<Ty: Sized + Default + Clone> Allocator<Ty> for SubclassableAllocator
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