pub struct CompressionTuning { /* private fields */ }Expand description
Optional low-level tuning layered over a super::CompressionLevel preset.
Unset fields retain the level-derived value. Validation is performed before the encoder allocates its frame workspace.
Implementations§
Source§impl CompressionTuning
impl CompressionTuning
pub const fn new() -> Self
pub const fn with_window_log(self, value: u8) -> Self
pub const fn with_hash_log(self, value: u8) -> Self
pub const fn with_chain_log(self, value: u8) -> Self
pub const fn with_search_log(self, value: u8) -> Self
pub const fn with_min_match(self, value: u8) -> Self
pub const fn with_target_length(self, value: u32) -> Self
pub const fn with_strategy(self, value: CompressionStrategy) -> Self
pub const fn with_target_compressed_block_size(self, bytes: usize) -> Self
pub const fn with_long_distance_matching( self, value: LongDistanceMatching, ) -> Self
Trait Implementations§
Source§impl Clone for CompressionTuning
impl Clone for CompressionTuning
impl Copy for CompressionTuning
Source§impl Debug for CompressionTuning
impl Debug for CompressionTuning
Source§impl Default for CompressionTuning
impl Default for CompressionTuning
impl Eq for CompressionTuning
Source§impl PartialEq for CompressionTuning
impl PartialEq for CompressionTuning
impl StructuralPartialEq for CompressionTuning
Auto Trait Implementations§
impl Freeze for CompressionTuning
impl RefUnwindSafe for CompressionTuning
impl Send for CompressionTuning
impl Sync for CompressionTuning
impl Unpin for CompressionTuning
impl UnsafeUnpin for CompressionTuning
impl UnwindSafe for CompressionTuning
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