pub struct ContentReference {
pub range: Range<u64>,
pub digest: String,
pub size: u64,
}Expand description
A reference to a compressed range in a zstd:chunked file, along with size and checksum information about the uncompressed data at that range.
Fields§
§range: Range<u64>The range itself, in bytes, in the compressed file.
digest: StringThe digest of the data at the range, after decompression.
size: u64The size of the compressed data at the range, after decompression.
Trait Implementations§
Source§impl Clone for ContentReference
impl Clone for ContentReference
Source§fn clone(&self) -> ContentReference
fn clone(&self) -> ContentReference
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 moreAuto Trait Implementations§
impl Freeze for ContentReference
impl RefUnwindSafe for ContentReference
impl Send for ContentReference
impl Sync for ContentReference
impl Unpin for ContentReference
impl UnsafeUnpin for ContentReference
impl UnwindSafe for ContentReference
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