pub enum BinaryMethod {
Literal,
Delta,
}Expand description
How a binary hunk encodes the postimage.
Variants§
Literal
The inflated bytes ARE the postimage (literal <N>).
Delta
The inflated bytes are a git delta to apply to the preimage (delta <N>).
Trait Implementations§
Source§impl Clone for BinaryMethod
impl Clone for BinaryMethod
Source§fn clone(&self) -> BinaryMethod
fn clone(&self) -> BinaryMethod
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 moreimpl Copy for BinaryMethod
Source§impl Debug for BinaryMethod
impl Debug for BinaryMethod
impl Eq for BinaryMethod
Source§impl PartialEq for BinaryMethod
impl PartialEq for BinaryMethod
Source§fn eq(&self, other: &BinaryMethod) -> bool
fn eq(&self, other: &BinaryMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BinaryMethod
Auto Trait Implementations§
impl Freeze for BinaryMethod
impl RefUnwindSafe for BinaryMethod
impl Send for BinaryMethod
impl Sync for BinaryMethod
impl Unpin for BinaryMethod
impl UnsafeUnpin for BinaryMethod
impl UnwindSafe for BinaryMethod
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