pub struct DiffLineStats {
pub removals: u32,
pub insertions: u32,
pub before: u32,
pub after: u32,
}
Available on crate feature
blob-diff
only.Expand description
Information about the diff performed to detect similarity of a Rewrite.
Fields§
§removals: u32
The amount of lines to remove from the source to get to the destination.
insertions: u32
The amount of lines to add to the source to get to the destination.
before: u32
The amount of lines of the previous state, in the source.
after: u32
The amount of lines of the new state, in the destination.
Trait Implementations§
source§impl Clone for DiffLineStats
impl Clone for DiffLineStats
source§fn clone(&self) -> DiffLineStats
fn clone(&self) -> DiffLineStats
Returns a copy 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 DiffLineStats
impl Debug for DiffLineStats
source§impl Default for DiffLineStats
impl Default for DiffLineStats
source§fn default() -> DiffLineStats
fn default() -> DiffLineStats
Returns the “default value” for a type. Read more
source§impl PartialEq<DiffLineStats> for DiffLineStats
impl PartialEq<DiffLineStats> for DiffLineStats
source§fn eq(&self, other: &DiffLineStats) -> bool
fn eq(&self, other: &DiffLineStats) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DiffLineStats
impl Eq for DiffLineStats
impl StructuralEq for DiffLineStats
impl StructuralPartialEq for DiffLineStats
Auto Trait Implementations§
impl RefUnwindSafe for DiffLineStats
impl Send for DiffLineStats
impl Sync for DiffLineStats
impl Unpin for DiffLineStats
impl UnwindSafe for DiffLineStats
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more