pub struct EditCounts {
pub matches: usize,
pub substitutions: usize,
pub deletions: usize,
pub insertions: usize,
}Expand description
Counts of each operation kind in an edit script, plus the total distance.
Fields§
§matches: usizeNumber of matched (unchanged) symbols.
substitutions: usizeNumber of substitutions.
deletions: usizeNumber of deletions.
insertions: usizeNumber of insertions.
Implementations§
Trait Implementations§
Source§impl Clone for EditCounts
impl Clone for EditCounts
Source§fn clone(&self) -> EditCounts
fn clone(&self) -> EditCounts
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 EditCounts
Source§impl Debug for EditCounts
impl Debug for EditCounts
Source§impl Default for EditCounts
impl Default for EditCounts
Source§fn default() -> EditCounts
fn default() -> EditCounts
Returns the “default value” for a type. Read more
impl Eq for EditCounts
Source§impl PartialEq for EditCounts
impl PartialEq for EditCounts
Source§fn eq(&self, other: &EditCounts) -> bool
fn eq(&self, other: &EditCounts) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EditCounts
Auto Trait Implementations§
impl Freeze for EditCounts
impl RefUnwindSafe for EditCounts
impl Send for EditCounts
impl Sync for EditCounts
impl Unpin for EditCounts
impl UnsafeUnpin for EditCounts
impl UnwindSafe for EditCounts
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