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 for MatchingType
impl PartialEq for MatchingType
source§impl PartialOrd for MatchingType
impl PartialOrd for MatchingType
impl Copy for MatchingType
impl Eq for MatchingType
impl StructuralPartialEq for MatchingType
Auto Trait Implementations§
impl Freeze for MatchingType
impl RefUnwindSafe for MatchingType
impl Send for MatchingType
impl Sync for MatchingType
impl Unpin for MatchingType
impl UnwindSafe for MatchingType
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)