pub struct Hunk {
pub at: Locator,
pub removed: bool,
pub text: String,
pub changes: Vec<Change>,
pub comments: Vec<Comment>,
}Expand description
One changed paragraph: its Locator (where it is in the old or new
document), whether it is removed (a paragraph only in the old
version), its rendered text with markup intact, its changes in order,
and any comments that were not written right after a change.
Fields§
§at: LocatorThe paragraph in the new version, or in the old one when removed.
removed: boolThe paragraph is not in the new version.
text: StringThe paragraph with its markup, unwrapped.
changes: Vec<Change>The changes, in order.
comments: Vec<Comment>Comments not written right after a change.
Trait Implementations§
impl Eq for Hunk
impl StructuralPartialEq for Hunk
Auto Trait Implementations§
impl Forget for Hunk
impl Freeze for Hunk
impl Move for Hunk
impl RefUnwindSafe for Hunk
impl Send for Hunk
impl Sync for Hunk
impl Unpin for Hunk
impl UnsafeUnpin for Hunk
impl UnwindSafe for Hunk
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.