pub struct Chunk {
pub hash: u64,
pub offset: usize,
pub length: usize,
}
Expand description
Represents a chunk returned from the FastCDC iterator.
Fields§
§hash: u64
The gear hash value as of the end of the chunk.
offset: usize
Starting byte position within the source.
length: usize
Length of the chunk in bytes.
Trait Implementations§
impl Copy for Chunk
impl Eq for Chunk
impl StructuralPartialEq for Chunk
Auto Trait Implementations§
impl Freeze for Chunk
impl RefUnwindSafe for Chunk
impl Send for Chunk
impl Sync for Chunk
impl Unpin for Chunk
impl UnwindSafe for Chunk
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