pub struct ChunkModification {
pub chunk_id: ChunkId,
pub byte_changes: Vec<(usize, u8, u8)>,
pub chunk_offset: Option<ChunkOffset>,
}Expand description
Information about a chunk modification
Fields§
§chunk_id: ChunkIdThe chunk being modified
byte_changes: Vec<(usize, u8, u8)>Byte changes within this chunk: (offset_within_chunk, old_value, new_value)
chunk_offset: Option<ChunkOffset>The chunk’s offset info (if available from manifest)
Trait Implementations§
Source§impl Clone for ChunkModification
impl Clone for ChunkModification
Source§fn clone(&self) -> ChunkModification
fn clone(&self) -> ChunkModification
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ChunkModification
impl RefUnwindSafe for ChunkModification
impl Send for ChunkModification
impl Sync for ChunkModification
impl Unpin for ChunkModification
impl UnwindSafe for ChunkModification
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more