Enum deflate::MatchingType
source · pub enum MatchingType {
Greedy,
Lazy,
}
Expand description
An enum describing whether we use lazy or greedy matching.
Variants§
Greedy
Use greedy matching: the matching algorithm simply uses a match right away if found.
Lazy
Use lazy matching: after finding a match, the next input byte is checked, to see if there is a better match starting at that byte.
As a special case, if max_hash_checks is set to 0, compression using only run-length (i.e maximum match distance of 1) is performed instead.
Trait Implementations§
source§impl Clone for MatchingType
impl Clone for MatchingType
source§fn clone(&self) -> MatchingType
fn clone(&self) -> MatchingType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MatchingType
impl Debug for MatchingType
source§impl Display for MatchingType
impl Display for MatchingType
source§impl Hash for MatchingType
impl Hash for MatchingType
source§impl Ord for MatchingType
impl Ord for MatchingType
source§fn cmp(&self, other: &MatchingType) -> Ordering
fn cmp(&self, other: &MatchingType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<MatchingType> for MatchingType
impl PartialEq<MatchingType> for MatchingType
source§fn eq(&self, other: &MatchingType) -> bool
fn eq(&self, other: &MatchingType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<MatchingType> for MatchingType
impl PartialOrd<MatchingType> for MatchingType
source§fn partial_cmp(&self, other: &MatchingType) -> Option<Ordering>
fn partial_cmp(&self, other: &MatchingType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more