pub struct ZstdFrame { /* private fields */ }Expand description
Represents a single frame within a zstd stream, including the compressed and decompressed offsets within the stream, and the compressed and decompressed sizes of the frame.
Implementations§
Source§impl ZstdFrame
impl ZstdFrame
Sourcepub fn compressed_size(&self) -> u64
pub fn compressed_size(&self) -> u64
Get the compressed size of the frame, measured in bytes.
Sourcepub fn decompressed_size(&self) -> u64
pub fn decompressed_size(&self) -> u64
Get the size of the frame if it were decompressed, measured in bytes.
Sourcepub fn compressed_range(&self) -> Range<u64>
pub fn compressed_range(&self) -> Range<u64>
Get the range of positions that cover the range of this frame within the compressed zstd stream.
Sourcepub fn decompressed_range(&self) -> Range<u64>
pub fn decompressed_range(&self) -> Range<u64>
Get the range of positions that this frame would include if the zstd stream were decompressed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ZstdFrame
impl RefUnwindSafe for ZstdFrame
impl Send for ZstdFrame
impl Sync for ZstdFrame
impl Unpin for ZstdFrame
impl UnwindSafe for ZstdFrame
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