pub enum TextFormat {
Github,
Word,
Normal,
Context,
SideBySide,
}Expand description
Presentation of a document’s line changes.
Variants§
Github
Git headers and unified hunks, with the snapshots’ tracked marks carried into the changed lines as their existing CriticMarkup.
Word
Accept both inputs first, then emit fresh word-level CriticMarkup on each changed line only.
Normal
Traditional a, d, c line addresses, without context lines.
Context
Traditional two-sided context blocks (***, ---).
SideBySide
Aligned replacement, insertion and deletion rows, without
addresses; the default for Self::SideBySide adapts to a
--window wide enough for the text.
Trait Implementations§
Source§impl Clone for TextFormat
impl Clone for TextFormat
Source§fn clone(&self) -> TextFormat
fn clone(&self) -> TextFormat
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 TextFormat
Source§impl Debug for TextFormat
impl Debug for TextFormat
Source§impl Default for TextFormat
impl Default for TextFormat
Source§fn default() -> TextFormat
fn default() -> TextFormat
Returns the “default value” for a type. Read more
impl Eq for TextFormat
Source§impl PartialEq for TextFormat
impl PartialEq for TextFormat
impl StructuralPartialEq for TextFormat
Auto Trait Implementations§
impl Forget for TextFormat
impl Freeze for TextFormat
impl Move for TextFormat
impl RefUnwindSafe for TextFormat
impl Send for TextFormat
impl Sync for TextFormat
impl Unpin for TextFormat
impl UnsafeUnpin for TextFormat
impl UnwindSafe for TextFormat
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.