pub struct BinaryDelta {
pub source_hash: [u8; 32],
pub target_hash: [u8; 32],
pub operations: Vec<DeltaOp>,
pub compressed_size: usize,
}Expand description
A binary delta between two versions of a file.
Applying the delta to the source produces the target.
Fields§
§source_hash: [u8; 32]SHA-256 hash of the source file
target_hash: [u8; 32]SHA-256 hash of the target file
operations: Vec<DeltaOp>Ordered list of delta operations
compressed_size: usizeCompressed size of the delta (for statistics)
Trait Implementations§
Source§impl Clone for BinaryDelta
impl Clone for BinaryDelta
Source§fn clone(&self) -> BinaryDelta
fn clone(&self) -> BinaryDelta
Returns a duplicate of the value. Read more
1.0.0§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 BinaryDelta
impl RefUnwindSafe for BinaryDelta
impl Send for BinaryDelta
impl Sync for BinaryDelta
impl Unpin for BinaryDelta
impl UnwindSafe for BinaryDelta
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)