pub struct LevelParams {
pub strategy: Strategy,
pub window_log: u32,
pub hash_log: u32,
pub chain_log: u32,
pub search_log: u32,
pub min_match: u32,
pub target_length: u32,
pub search_strength: u32,
pub force_raw_literals: bool,
}Expand description
Compression parameters for a specific level.
Obtain via level_params or construct directly for custom tuning.
Pass to compress_with_params.
Fields§
§strategy: Strategy§window_log: u32§hash_log: u32§chain_log: u32DFast short table log. Same as hashLog for Fast strategy.
search_log: u32§min_match: u32§target_length: u32§search_strength: u32§force_raw_literals: boolTrait Implementations§
Source§impl Clone for LevelParams
impl Clone for LevelParams
Source§fn clone(&self) -> LevelParams
fn clone(&self) -> LevelParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LevelParams
Auto Trait Implementations§
impl Freeze for LevelParams
impl RefUnwindSafe for LevelParams
impl Send for LevelParams
impl Sync for LevelParams
impl Unpin for LevelParams
impl UnsafeUnpin for LevelParams
impl UnwindSafe for LevelParams
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