#[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(
primary: impl Into<Ecc>,
secondary: impl Into<Ecc>,
length: u64,
offset: u64
) -> Self
pub fn new( primary: impl Into<Ecc>, secondary: impl Into<Ecc>, length: u64, offset: u64 ) -> Self
Create a new chunk instance.
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§
source§impl PartialEq for Chunk
impl PartialEq for Chunk
impl Copy for Chunk
impl StructuralPartialEq for Chunk
Auto Trait Implementations§
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