pub struct Checkpoint {
pub compressed_offset_in_bits: u64,
pub uncompressed_offset_in_bytes: u64,
pub kind: CheckpointKind,
pub line_offset: Option<u64>,
}Expand description
A random-access point into a DEFLATE-based stream.
The compressed position is a bit offset because a DEFLATE block boundary is
not generally byte aligned. CheckpointKind says whether the offset is a
gzip member header, a known member’s raw payload, a zlib header, a raw
stream start, or an interior DEFLATE block, so a reader never has to infer
framing from compressed bytes.
Fields§
§compressed_offset_in_bits: u64Absolute compressed bit offset from the start of the source.
uncompressed_offset_in_bytes: u64Absolute decompressed byte offset across all members.
kind: CheckpointKindHow a decoder resumes at this compressed position.
line_offset: Option<u64>Number of newline bytes preceding this point, when supplied by the index.
Trait Implementations§
Source§impl Clone for Checkpoint
impl Clone for Checkpoint
Source§fn clone(&self) -> Checkpoint
fn clone(&self) -> Checkpoint
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 Checkpoint
Source§impl Debug for Checkpoint
impl Debug for Checkpoint
impl Eq for Checkpoint
Source§impl PartialEq for Checkpoint
impl PartialEq for Checkpoint
impl StructuralPartialEq for Checkpoint
Auto Trait Implementations§
impl Freeze for Checkpoint
impl RefUnwindSafe for Checkpoint
impl Send for Checkpoint
impl Sync for Checkpoint
impl Unpin for Checkpoint
impl UnsafeUnpin for Checkpoint
impl UnwindSafe for Checkpoint
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