pub struct Chunk {
pub section_idx: u32,
pub offset: u32,
pub size: u32,
}
Expand description
The location of a chunk of data for a regular file.
Usually, you should use crate::chunker::Chunker
s to slice file data into
Chunk
s and copy data at the same time, rather than manually constructing
them.
For details about data chunking and the meaning of fields, check upstream documentations.
Fields§
§section_idx: u32
The section index.
offset: u32
The byte offset inside the section.
size: u32
The size of the chunk.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.