pub enum TrainerKind {
Frequency,
FastCover,
}Expand description
Trainer algorithm selection. See train_zstd_with_trainer.
Variants§
Frequency
Top-K substrings by frequency × length. Default. Wins on corpora with strong common substrings.
FastCover
Dmer-frequency scoring per FastCover (Facebook 2018). Wins on corpora with distributed redundancy (mixed JSON, source files, log lines).
Implementations§
Source§impl TrainerKind
impl TrainerKind
Sourcepub fn from_config_str(s: &str) -> Self
pub fn from_config_str(s: &str) -> Self
Parse from a config string. Unknown values fall back to
Frequency (the default).
Trait Implementations§
Source§impl Clone for TrainerKind
impl Clone for TrainerKind
Source§fn clone(&self) -> TrainerKind
fn clone(&self) -> TrainerKind
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 TrainerKind
Source§impl Debug for TrainerKind
impl Debug for TrainerKind
impl Eq for TrainerKind
Source§impl PartialEq for TrainerKind
impl PartialEq for TrainerKind
impl StructuralPartialEq for TrainerKind
Auto Trait Implementations§
impl Freeze for TrainerKind
impl RefUnwindSafe for TrainerKind
impl Send for TrainerKind
impl Sync for TrainerKind
impl Unpin for TrainerKind
impl UnsafeUnpin for TrainerKind
impl UnwindSafe for TrainerKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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