pub struct Parameters {
pub symbol_bits: usize,
pub symbol_eof: usize,
pub symbol_count: usize,
pub freq_bits: usize,
pub freq_max: u64,
pub code_bits: usize,
pub code_min: u64,
pub code_one_fourth: u64,
pub code_half: u64,
pub code_three_fourths: u64,
pub code_max: u64,
}Expand description
Model parameters that specifies the common property of the models.
Fields§
§symbol_bits: usizeBit width of the symbols being encoded. Usually 8 for byte oriented inputs.
symbol_eof: usizeCode for the EOF symbol. This is the next symbol code after the valid symbols to encode.
symbol_count: usizeNumber of possible symbols including the EOF symbol.
freq_bits: usizeNumber of bits representing symbol frequencies.
freq_max: u64Maximum cumulated frequency value for symbols.
code_bits: usizeNumber of bits representing the current code ranges.
code_min: u64Minimum value for code range. This is always zero.
code_one_fourth: u64Delimiter for the one fourth of the valid code range.
code_half: u64Delimiter for the half of the valid code range.
code_three_fourths: u64Delimiter for the three fourths of the valid code range.
code_max: u64Upper limit of the valid code range.
Implementations§
Source§impl Parameters
impl Parameters
Trait Implementations§
Source§impl Clone for Parameters
impl Clone for Parameters
Source§fn clone(&self) -> Parameters
fn clone(&self) -> Parameters
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Parameters
impl RefUnwindSafe for Parameters
impl Send for Parameters
impl Sync for Parameters
impl Unpin for Parameters
impl UnwindSafe for Parameters
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