pub enum PatchFormat {
Patch,
Critic,
Github,
Word,
Normal,
Context,
SideBySide,
}Expand description
jubarte diff --format: what goes to stdout.
Variants§
Patch
The changed paragraphs, as git diff --word-diff with CriticMarkup
comments and highlights.
Critic
CriticMarkup: current document text with tracked marks.
Github
Git/GitHub unified text; preserves each document’s tracked marks.
Word
Fresh word-level CriticMarkup after accepting ALL changes in both inputs.
Normal
Normal diff with line addresses and no context (a/d/c, < and >).
Context
Context diff with old/new ranges and !, + and - prefixes.
SideBySide
Old and new lines in parallel columns, with |, < and > markers.
Implementations§
Source§impl PatchFormat
impl PatchFormat
Sourcepub fn is_text_view(self) -> bool
pub fn is_text_view(self) -> bool
Whether this format compares document snapshots without constructing a redline.
Trait Implementations§
Source§impl Clone for PatchFormat
impl Clone for PatchFormat
impl Copy for PatchFormat
Source§impl Debug for PatchFormat
impl Debug for PatchFormat
impl Eq for PatchFormat
Source§impl PartialEq for PatchFormat
impl PartialEq for PatchFormat
Source§impl Serialize for PatchFormat
impl Serialize for PatchFormat
impl StructuralPartialEq for PatchFormat
Source§impl ValueEnum for PatchFormat
impl ValueEnum for PatchFormat
Auto Trait Implementations§
impl Forget for PatchFormat
impl Freeze for PatchFormat
impl Move for PatchFormat
impl RefUnwindSafe for PatchFormat
impl Send for PatchFormat
impl Sync for PatchFormat
impl Unpin for PatchFormat
impl UnsafeUnpin for PatchFormat
impl UnwindSafe for PatchFormat
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.