#[non_exhaustive]pub struct Backreference {
pub distance: u16,
pub length: u16,
}Expand description
One retained reference into the predecessor window.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.distance: u16Distance before the current block’s first output byte.
length: u16Reference length as reported by rapidgzip, capped at the copy distance.
Trait Implementations§
Source§impl Clone for Backreference
impl Clone for Backreference
Source§fn clone(&self) -> Backreference
fn clone(&self) -> Backreference
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Backreference
Source§impl Debug for Backreference
impl Debug for Backreference
impl Eq for Backreference
Source§impl PartialEq for Backreference
impl PartialEq for Backreference
impl StructuralPartialEq for Backreference
Auto Trait Implementations§
impl Freeze for Backreference
impl RefUnwindSafe for Backreference
impl Send for Backreference
impl Sync for Backreference
impl Unpin for Backreference
impl UnsafeUnpin for Backreference
impl UnwindSafe for Backreference
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