pub struct SectionDiff {
pub heading: String,
pub path: String,
pub change: ChangeKind,
pub deltas: Vec<NodeDelta>,
}Expand description
A single section-level diff entry.
Fields§
§heading: StringHeading text (empty for the document preamble preceding the first heading).
path: StringHeading-anchor path, e.g. /h2#background. Empty path for the preamble.
change: ChangeKindCoarse change classification.
deltas: Vec<NodeDelta>Per-block deltas inside the section.
Trait Implementations§
Source§impl Clone for SectionDiff
impl Clone for SectionDiff
Source§fn clone(&self) -> SectionDiff
fn clone(&self) -> SectionDiff
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 moreSource§impl Debug for SectionDiff
impl Debug for SectionDiff
Auto Trait Implementations§
impl Freeze for SectionDiff
impl RefUnwindSafe for SectionDiff
impl Send for SectionDiff
impl Sync for SectionDiff
impl Unpin for SectionDiff
impl UnsafeUnpin for SectionDiff
impl UnwindSafe for SectionDiff
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