#[repr(C, align(16))]pub struct Chunk { /* private fields */ }
Expand description
Specifies a chunk of data within the file.
Implementations§
Source§impl Chunk
impl Chunk
Sourcepub fn new(identifier: impl Into<Identifier>, length: u64, offset: u64) -> Self
pub fn new(identifier: impl Into<Identifier>, length: u64, offset: u64) -> Self
Create a new chunk instance.
Sourcepub fn identifier(&self) -> Identifier
pub fn identifier(&self) -> Identifier
Get the identifier.
Sourcepub fn length_mut(&mut self) -> &mut u64
pub fn length_mut(&mut self) -> &mut u64
Get the length mutably.
Sourcepub fn offset_mut(&mut self) -> &mut u64
pub fn offset_mut(&mut self) -> &mut u64
Get the offset mutably.
Trait Implementations§
impl Copy 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