pub struct AffectedChunks {
pub modified_chunks: Vec<ChunkModification>,
pub reencoded_chunks: Vec<ChunkId>,
pub new_chunks: Vec<NewChunk>,
pub removed_chunks: Vec<ChunkId>,
}Expand description
Result of analyzing which chunks are affected by a delta
Fields§
§modified_chunks: Vec<ChunkModification>Chunks that need to be modified in-place (non-shifting deltas)
reencoded_chunks: Vec<ChunkId>Chunks that need to be completely re-encoded (shifting deltas)
new_chunks: Vec<NewChunk>New chunks to add (appends)
removed_chunks: Vec<ChunkId>Chunks to remove from manifest (truncation)
Implementations§
Trait Implementations§
Source§impl Clone for AffectedChunks
impl Clone for AffectedChunks
Source§fn clone(&self) -> AffectedChunks
fn clone(&self) -> AffectedChunks
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 AffectedChunks
impl RefUnwindSafe for AffectedChunks
impl Send for AffectedChunks
impl Sync for AffectedChunks
impl Unpin for AffectedChunks
impl UnwindSafe for AffectedChunks
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