pub enum Lz77Method {
Rle,
Greedy,
}Expand description
LZ77 method selection.
Variants§
Rle
RLE-only: only matches consecutive identical values (distance = 1). Fast but limited compression on photographic content.
Greedy
Full backward references with hash chains. Finds matches at arbitrary distances within a sliding window. 1-3% better compression on photos, slower.
Trait Implementations§
Source§impl Clone for Lz77Method
impl Clone for Lz77Method
Source§fn clone(&self) -> Lz77Method
fn clone(&self) -> Lz77Method
Returns a duplicate 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 Lz77Method
impl Debug for Lz77Method
Source§impl Default for Lz77Method
impl Default for Lz77Method
Source§fn default() -> Lz77Method
fn default() -> Lz77Method
Returns the “default value” for a type. Read more
Source§impl PartialEq for Lz77Method
impl PartialEq for Lz77Method
impl Copy for Lz77Method
impl Eq for Lz77Method
impl StructuralPartialEq for Lz77Method
Auto Trait Implementations§
impl Freeze for Lz77Method
impl RefUnwindSafe for Lz77Method
impl Send for Lz77Method
impl Sync for Lz77Method
impl Unpin for Lz77Method
impl UnwindSafe for Lz77Method
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