pub struct CompDictEntry { /* private fields */ }Expand description
An entry in Compression Dictionary.
This has pointer to current ‘last min offset’ CompDictEntry::last_read_item in CompDict::buf
allocation, and pointer to last offset for the current 2 byte key.
Last min offset CompDictEntry::last_read_item is advanced as items are sequentially read,
i.e. when CompDict::get_item is called. This offset corresponds to the first item which had
offset greater than min_offset parameter of last CompDict::get_item call.
When compressing, this means we can find next matching offset in LZ77 search window in (effectively) O(1) time.
Trait Implementations§
Source§impl Clone for CompDictEntry
impl Clone for CompDictEntry
Source§fn clone(&self) -> CompDictEntry
fn clone(&self) -> CompDictEntry
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 moreAuto Trait Implementations§
impl Freeze for CompDictEntry
impl RefUnwindSafe for CompDictEntry
impl !Send for CompDictEntry
impl !Sync for CompDictEntry
impl Unpin for CompDictEntry
impl UnwindSafe for CompDictEntry
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