pub struct Chunk {
pub hash: u64,
pub offset: isize,
pub cutpoint: usize,
}Expand description
Represents a identified chunk.
See the individual fields for more documentation.
Fields§
§hash: u64The gear hash value as of the end of the chunk.
offset: isizeThe offset in the given buffer at which this chunk was identified.
Note:
FastCDC::cut may set a negative value if the chunk starts at a previous buffer.
cutpoint: usizeThe cut point in the given buffer at which this chunk ends.
Implementations§
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