pub struct TokenPredictorParameters {Show 14 fields
pub matches_to_start_detected: bool,
pub very_far_matches_detected: bool,
pub window_bits: u32,
pub strategy: PreflateStrategy,
pub nice_length: u32,
pub add_policy: DictionaryAddPolicy,
pub max_token_count: u16,
pub zlib_compatible: bool,
pub max_dist_3_matches: u32,
pub matching_type: MatchingType,
pub max_chain: u32,
pub min_len: u32,
pub hash_algorithm: HashAlgorithm,
pub block_type_strategy: BlockTypeStrategy,
}Fields§
§matches_to_start_detected: boolZlib does not match to first byte of a file in order to reserve 0 for the end of chain
very_far_matches_detected: boolif there are matches that have a distance larger than window_size - MAX_MATCH. Zlib does not allow these.
window_bits: u32§strategy: PreflateStrategy§nice_length: u32§add_policy: DictionaryAddPolicyif something, then we use the “fast” compressor, which only adds smaller substrings to the dictionary
max_token_count: u16§zlib_compatible: bool§max_dist_3_matches: u32§matching_type: MatchingType§max_chain: u32§min_len: u32§hash_algorithm: HashAlgorithm§block_type_strategy: BlockTypeStrategyTrait Implementations§
Source§impl Clone for TokenPredictorParameters
impl Clone for TokenPredictorParameters
Source§fn clone(&self) -> TokenPredictorParameters
fn clone(&self) -> TokenPredictorParameters
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 TokenPredictorParameters
Source§impl Debug for TokenPredictorParameters
impl Debug for TokenPredictorParameters
impl<'__de> Decode<'__de> for TokenPredictorParameterswhere
'__de:,
impl Encode for TokenPredictorParameters
impl Eq for TokenPredictorParameters
Source§impl PartialEq for TokenPredictorParameters
impl PartialEq for TokenPredictorParameters
impl StructuralPartialEq for TokenPredictorParameters
Auto Trait Implementations§
impl Freeze for TokenPredictorParameters
impl RefUnwindSafe for TokenPredictorParameters
impl Send for TokenPredictorParameters
impl Sync for TokenPredictorParameters
impl Unpin for TokenPredictorParameters
impl UnsafeUnpin for TokenPredictorParameters
impl UnwindSafe for TokenPredictorParameters
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