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
sourceimpl Clone for MatchingType
impl Clone for MatchingType
sourcefn clone(&self) -> MatchingType
fn clone(&self) -> MatchingType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MatchingType
impl Debug for MatchingType
sourceimpl Display for MatchingType
impl Display for MatchingType
sourceimpl Hash for MatchingType
impl Hash for MatchingType
sourceimpl Ord for MatchingType
impl Ord for MatchingType
sourceimpl PartialEq<MatchingType> for MatchingType
impl PartialEq<MatchingType> for MatchingType
sourceimpl PartialOrd<MatchingType> for MatchingType
impl PartialOrd<MatchingType> for MatchingType
sourcefn partial_cmp(&self, other: &MatchingType) -> Option<Ordering>
fn partial_cmp(&self, other: &MatchingType) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl Copy for MatchingType
impl Eq for MatchingType
impl StructuralEq for MatchingType
impl StructuralPartialEq for MatchingType
Auto Trait Implementations
impl RefUnwindSafe for MatchingType
impl Send for MatchingType
impl Sync for MatchingType
impl Unpin for MatchingType
impl UnwindSafe for MatchingType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more