Struct brotli_decompressor::writer::HuffmanTreeGroup
source · pub struct HuffmanTreeGroup<Alloc32: Allocator<u32>, AllocHC: Allocator<HuffmanCode>> {
pub htrees: Alloc32::AllocatedMemory,
pub codes: AllocHC::AllocatedMemory,
pub alphabet_size: u16,
pub max_symbol: u16,
pub num_htrees: u16,
}
Fields§
§htrees: Alloc32::AllocatedMemory
§codes: AllocHC::AllocatedMemory
§alphabet_size: u16
§max_symbol: u16
§num_htrees: u16
Implementations§
source§impl<AllocU32: Allocator<u32>, AllocHC: Allocator<HuffmanCode>> HuffmanTreeGroup<AllocU32, AllocHC>
impl<AllocU32: Allocator<u32>, AllocHC: Allocator<HuffmanCode>> HuffmanTreeGroup<AllocU32, AllocHC>
pub fn init( &mut self, alloc_u32: &mut AllocU32, alloc_hc: &mut AllocHC, alphabet_size: u16, max_symbol: u16, ntrees: u16, )
pub fn get_tree_mut(&mut self, index: u32) -> &mut [HuffmanCode]
pub fn get_tree(&self, index: u32) -> &[HuffmanCode]
pub fn reset(&mut self, alloc_u32: &mut AllocU32, alloc_hc: &mut AllocHC)
pub fn build_hgroup_cache(&self) -> [&[HuffmanCode]; 256]
Trait Implementations§
Auto Trait Implementations§
impl<Alloc32, AllocHC> Freeze for HuffmanTreeGroup<Alloc32, AllocHC>where
<Alloc32 as Allocator<u32>>::AllocatedMemory: Freeze,
<AllocHC as Allocator<HuffmanCode>>::AllocatedMemory: Freeze,
impl<Alloc32, AllocHC> RefUnwindSafe for HuffmanTreeGroup<Alloc32, AllocHC>where
<Alloc32 as Allocator<u32>>::AllocatedMemory: RefUnwindSafe,
<AllocHC as Allocator<HuffmanCode>>::AllocatedMemory: RefUnwindSafe,
impl<Alloc32, AllocHC> Send for HuffmanTreeGroup<Alloc32, AllocHC>where
<Alloc32 as Allocator<u32>>::AllocatedMemory: Send,
<AllocHC as Allocator<HuffmanCode>>::AllocatedMemory: Send,
impl<Alloc32, AllocHC> Sync for HuffmanTreeGroup<Alloc32, AllocHC>where
<Alloc32 as Allocator<u32>>::AllocatedMemory: Sync,
<AllocHC as Allocator<HuffmanCode>>::AllocatedMemory: Sync,
impl<Alloc32, AllocHC> Unpin for HuffmanTreeGroup<Alloc32, AllocHC>where
<Alloc32 as Allocator<u32>>::AllocatedMemory: Unpin,
<AllocHC as Allocator<HuffmanCode>>::AllocatedMemory: Unpin,
impl<Alloc32, AllocHC> UnwindSafe for HuffmanTreeGroup<Alloc32, AllocHC>where
<Alloc32 as Allocator<u32>>::AllocatedMemory: UnwindSafe,
<AllocHC as Allocator<HuffmanCode>>::AllocatedMemory: 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