pub struct CParameter(/* private fields */);Available on
async_compression_unstable and crate feature zstd-zrip only.Expand description
A compression parameter for the zrip backend.
As with the zstd backend, the last value given for a parameter wins.
Implementations§
Source§impl CParameter
impl CParameter
pub fn quality(level: Level) -> i32
Sourcepub fn window_log(value: u32) -> Self
pub fn window_log(value: u32) -> Self
Window size in bytes (as a power of two)
zrip clamps it to 10..=27, 1 KiB to 128 MiB, where zstd rejects values out of its range.
0 selects the level’s default, as with the zstd backend.
Sourcepub fn enable_long_distance_matching(value: bool) -> Self
pub fn enable_long_distance_matching(value: bool) -> Self
Enable long distance matching mode to look for and emit long-distance references.
This increases the default window size.
Trait Implementations§
Source§impl Clone for CParameter
impl Clone for CParameter
impl Copy for CParameter
Source§impl Debug for CParameter
impl Debug for CParameter
impl Eq for CParameter
Source§impl PartialEq for CParameter
impl PartialEq for CParameter
impl StructuralPartialEq for CParameter
Auto Trait Implementations§
impl Forget for CParameter
impl Freeze for CParameter
impl Move for CParameter
impl RefUnwindSafe for CParameter
impl Send for CParameter
impl Sync for CParameter
impl Unpin for CParameter
impl UnsafeUnpin for CParameter
impl UnwindSafe for CParameter
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