#[repr(C)]pub struct ExternalSequence {
pub offset: u32,
pub lit_len: u32,
pub match_len: u32,
pub rep: u32,
}Expand description
One sequence of a parse: lit_len literal bytes, then match_len bytes
copied from offset bytes back. A sequence with offset == 0 and
match_len == 0 carries only literals and ends a block (a block
delimiter). Laid out as the C ZSTD_Sequence.
Fields§
§offset: u32How far back the match copies from, in bytes (not the offset code).
lit_len: u32Literal bytes before the match.
match_len: u32Bytes the match copies.
rep: u32Which repeat offset offset is (1..=3, numbered as RFC 8878 3.1.1.5
numbers them), or 0 when it is none. A captured parse fills it in; the
encoder works it out itself and never reads it.
Implementations§
Trait Implementations§
Source§impl Clone for ExternalSequence
impl Clone for ExternalSequence
impl Copy for ExternalSequence
Source§impl Debug for ExternalSequence
impl Debug for ExternalSequence
Source§impl Default for ExternalSequence
impl Default for ExternalSequence
impl Eq for ExternalSequence
Source§impl PartialEq for ExternalSequence
impl PartialEq for ExternalSequence
impl StructuralPartialEq for ExternalSequence
Auto Trait Implementations§
impl Freeze for ExternalSequence
impl RefUnwindSafe for ExternalSequence
impl Send for ExternalSequence
impl Sync for ExternalSequence
impl Unpin for ExternalSequence
impl UnsafeUnpin for ExternalSequence
impl UnwindSafe for ExternalSequence
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