[−][src]Struct brotli::writer::HuffmanTreeGroup
Fields
htrees: <Alloc32 as Allocator<u32>>::AllocatedMemorycodes: <AllocHC as Allocator<HuffmanCode>>::AllocatedMemoryalphabet_size: u16max_symbol: u16num_htrees: u16Methods
impl<AllocU32, AllocHC> HuffmanTreeGroup<AllocU32, AllocHC> where
AllocHC: Allocator<HuffmanCode>,
AllocU32: Allocator<u32>, [src]
AllocHC: Allocator<HuffmanCode>,
AllocU32: Allocator<u32>,
pub fn init(
&mut self,
alloc_u32: &mut AllocU32,
alloc_hc: &mut AllocHC,
alphabet_size: u16,
max_symbol: u16,
ntrees: u16
)[src]
&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][src]
pub fn get_tree(&self, index: u32) -> &[HuffmanCode][src]
pub fn reset(&mut self, alloc_u32: &mut AllocU32, alloc_hc: &mut AllocHC)[src]
pub fn build_hgroup_cache(&self) -> [&[HuffmanCode]; 256][src]
Trait Implementations
impl<AllocU32, AllocHC> Default for HuffmanTreeGroup<AllocU32, AllocHC> where
AllocHC: Allocator<HuffmanCode>,
AllocU32: Allocator<u32>, [src]
AllocHC: Allocator<HuffmanCode>,
AllocU32: Allocator<u32>,
fn default() -> HuffmanTreeGroup<AllocU32, AllocHC>[src]
Auto Trait Implementations
impl<Alloc32, AllocHC> RefUnwindSafe for HuffmanTreeGroup<Alloc32, AllocHC> where
<Alloc32 as Allocator<u32>>::AllocatedMemory: RefUnwindSafe,
<AllocHC as Allocator<HuffmanCode>>::AllocatedMemory: RefUnwindSafe,
<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,
<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,
<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,
<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,
<Alloc32 as Allocator<u32>>::AllocatedMemory: UnwindSafe,
<AllocHC as Allocator<HuffmanCode>>::AllocatedMemory: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,