Struct brotli_decompressor::brotli_alloc::BrotliAlloc
source · pub struct BrotliAlloc<T: Clone> {
pub default_value: T,
}
Fields§
§default_value: T
Implementations§
source§impl<T: Clone + Default> BrotliAlloc<T>
impl<T: Clone + Default> BrotliAlloc<T>
pub fn new() -> BrotliAlloc<T>
pub fn take_ownership(&self, data: Vec<T>) -> WrapBox<T>
Trait Implementations§
source§impl<T: Clone> Allocator<T> for BrotliAlloc<T>
impl<T: Clone> Allocator<T> for BrotliAlloc<T>
type AllocatedMemory = WrapBox<T>
fn alloc_cell(self: &mut BrotliAlloc<T>, len: usize) -> WrapBox<T>
fn free_cell(self: &mut BrotliAlloc<T>, _data: WrapBox<T>)
Auto Trait Implementations§
impl<T> Freeze for BrotliAlloc<T>where
T: Freeze,
impl<T> RefUnwindSafe for BrotliAlloc<T>where
T: RefUnwindSafe,
impl<T> Send for BrotliAlloc<T>where
T: Send,
impl<T> Sync for BrotliAlloc<T>where
T: Sync,
impl<T> Unpin for BrotliAlloc<T>where
T: Unpin,
impl<T> UnwindSafe for BrotliAlloc<T>where
T: UnwindSafe,
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