pub struct DiffStats {
pub sections_added: u32,
pub sections_removed: u32,
pub sections_modified: u32,
pub sections_moved: u32,
pub paragraphs_modified: u32,
pub tables_modified: u32,
pub chars_added: u32,
pub chars_removed: u32,
pub words_added: u32,
pub words_removed: u32,
}Expand description
Aggregate counts across the diff.
Fields§
§sections_added: u32Sections that exist only in to.
sections_removed: u32Sections that exist only in from.
sections_modified: u32Sections present on both sides with at least one delta.
sections_moved: u32Sections present on both sides at different positions.
paragraphs_modified: u32Paragraph-shaped block edits (paragraph, blockquote leaves, etc.).
tables_modified: u32Table edits (one or more cell changes).
chars_added: u32Total characters added across all prose deltas.
chars_removed: u32Total characters removed across all prose deltas.
words_added: u32Total words added across all prose deltas.
words_removed: u32Total words removed across all prose deltas.
Trait Implementations§
impl Eq for DiffStats
impl StructuralPartialEq for DiffStats
Auto Trait Implementations§
impl Freeze for DiffStats
impl RefUnwindSafe for DiffStats
impl Send for DiffStats
impl Sync for DiffStats
impl Unpin for DiffStats
impl UnsafeUnpin for DiffStats
impl UnwindSafe for DiffStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.