pub enum DeltaOp {
Copy {
offset: usize,
len: usize,
},
Insert {
data: Vec<u8>,
},
}Expand description
A single operation in a binary delta.
Variants§
Copy
Copy len bytes from the source at offset.
Insert
Insert new data not present in the source.
Fields
§
data: Vec<u8>Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeltaOp
impl RefUnwindSafe for DeltaOp
impl Send for DeltaOp
impl Sync for DeltaOp
impl Unpin for DeltaOp
impl UnwindSafe for DeltaOp
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)