pub enum PatchIdMode {
Unstable,
Stable,
Verbatim,
}Expand description
How to compute a patch-ID from unified diff text.
Variants§
Unstable
Accumulate file diffs into one rolling SHA-1; file order affects the result. Compatible with Git 1.9 and older. This is the default.
Stable
Hash each file’s diff independently and accumulate results with a carry-addition, so file order does not affect the patch-ID.
Verbatim
Like PatchIdMode::Stable but whitespace is not stripped before
hashing.
Trait Implementations§
Source§impl Clone for PatchIdMode
impl Clone for PatchIdMode
Source§fn clone(&self) -> PatchIdMode
fn clone(&self) -> PatchIdMode
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 moreSource§impl Debug for PatchIdMode
impl Debug for PatchIdMode
Source§impl PartialEq for PatchIdMode
impl PartialEq for PatchIdMode
impl Copy for PatchIdMode
impl Eq for PatchIdMode
impl StructuralPartialEq for PatchIdMode
Auto Trait Implementations§
impl Freeze for PatchIdMode
impl RefUnwindSafe for PatchIdMode
impl Send for PatchIdMode
impl Sync for PatchIdMode
impl Unpin for PatchIdMode
impl UnsafeUnpin for PatchIdMode
impl UnwindSafe for PatchIdMode
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