pub struct CodecOptions {
pub level: i32,
pub long_window_log: u32,
pub dict: Option<Vec<u8>>,
pub choice: CodecChoice,
pub effort: u8,
}Fields§
§level: i32§long_window_log: u32Upper bound for the zstd window log; the window is otherwise sized to the block.
dict: Option<Vec<u8>>§choice: CodecChoice§effort: u8Codec-choice effort for CodecChoice::Best, 1..=5 (values outside are clamped):
1 = zstd only (identical to CodecChoice::Zstd), 2 = zstd or xz decided on a sample of the
block, 3 = zstd, xz or PPMd (text) decided on a sample, 4 = 3 plus xz on the whole block when
PPMd won the sample, 5 = every codec on every block (the default; today’s full trial, the
same code path byte for byte). Blocks of at most sample_full_trial_max bytes always run
the full trial. Other choices ignore it. See sample for the sampling rule.
Trait Implementations§
Source§impl Clone for CodecOptions
impl Clone for CodecOptions
Source§impl Debug for CodecOptions
impl Debug for CodecOptions
Auto Trait Implementations§
impl Freeze for CodecOptions
impl RefUnwindSafe for CodecOptions
impl Send for CodecOptions
impl Sync for CodecOptions
impl Unpin for CodecOptions
impl UnsafeUnpin for CodecOptions
impl UnwindSafe for CodecOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DefaultBoxed for Twhere
T: Default,
impl<T> DefaultBoxed for Twhere
T: Default,
Source§unsafe fn default_in_place(ptr: *mut T)
unsafe fn default_in_place(ptr: *mut T)
Fill the given memory location with default value. Read more
Source§fn default_boxed() -> Box<Self>where
Self: Sized,
fn default_boxed() -> Box<Self>where
Self: Sized,
Create a boxed instance with default value for each field.
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more