Struct brotli_decompressor::MemPool
source · pub(crate) struct MemPool<'a, T: 'a> {
pub(crate) freelist: [&'a mut [T]; 512],
}
Fields§
§freelist: [&'a mut [T]; 512]
Implementations§
source§impl<'a, T: 'a> MemPool<'a, T>
impl<'a, T: 'a> MemPool<'a, T>
pub(crate) fn new_allocator( global_buffer: &'a mut [T], initializer: fn(_: &mut [T]), ) -> StackAllocator<'a, T, MemPool<'a, T>>
Trait Implementations§
source§impl<'a, T: 'a> SliceWrapper<&'a mut [T]> for MemPool<'a, T>
impl<'a, T: 'a> SliceWrapper<&'a mut [T]> for MemPool<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for MemPool<'a, T>
impl<'a, T> RefUnwindSafe for MemPool<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for MemPool<'a, T>where
T: Send,
impl<'a, T> Sync for MemPool<'a, T>where
T: Sync,
impl<'a, T> Unpin for MemPool<'a, T>
impl<'a, T> !UnwindSafe for MemPool<'a, T>
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