pub struct BinaryPatch {
pub forward: BinaryHunk,
pub reverse: Option<BinaryHunk>,
}Expand description
A GIT binary patch payload: a mandatory forward hunk (preimage → postimage)
and an optional reverse hunk (postimage → preimage), mirroring git’s
parse_binary.
Fields§
§forward: BinaryHunk§reverse: Option<BinaryHunk>Trait Implementations§
Source§impl Clone for BinaryPatch
impl Clone for BinaryPatch
Source§fn clone(&self) -> BinaryPatch
fn clone(&self) -> BinaryPatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BinaryPatch
impl Debug for BinaryPatch
impl Eq for BinaryPatch
Source§impl PartialEq for BinaryPatch
impl PartialEq for BinaryPatch
Source§fn eq(&self, other: &BinaryPatch) -> bool
fn eq(&self, other: &BinaryPatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BinaryPatch
Auto Trait Implementations§
impl Freeze for BinaryPatch
impl RefUnwindSafe for BinaryPatch
impl Send for BinaryPatch
impl Sync for BinaryPatch
impl Unpin for BinaryPatch
impl UnsafeUnpin for BinaryPatch
impl UnwindSafe for BinaryPatch
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