pub struct Chunk {
pub kind: ChunkKind,
pub header_offset: usize,
pub body: Range<usize>,
pub external_id: Option<String>,
pub payload_offset: usize,
}Expand description
One chunk: where its header and body are in the file.
Fields§
§kind: ChunkKindKind, from the tag.
header_offset: usizeFile offset of the chunk header.
body: Range<usize>File range of the body.
external_id: Option<String>For CHNKExta: the external id and where its payload starts.
payload_offset: usizeFile offset where the payload starts (after the id, for CHNKExta).
Trait Implementations§
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 UnsafeUnpin 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§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.