pub enum WhitespaceMode {
Strict,
Lenient,
SuperLenient,
}Expand description
Controls whitespace sensitivity when matching patch context and deletions.
Variants§
Strict
Exact matching, preserving all whitespace (no normalization).
Lenient
Lenient matching: trims leading/trailing whitespace and collapses internal whitespace runs to single spaces before comparing.
SuperLenient
SuperLenient matching: Lenient plus normalizes special characters like quotes and dashes.
Trait Implementations§
Source§impl Clone for WhitespaceMode
impl Clone for WhitespaceMode
Source§fn clone(&self) -> WhitespaceMode
fn clone(&self) -> WhitespaceMode
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 WhitespaceMode
Auto Trait Implementations§
impl Freeze for WhitespaceMode
impl RefUnwindSafe for WhitespaceMode
impl Send for WhitespaceMode
impl Sync for WhitespaceMode
impl Unpin for WhitespaceMode
impl UnsafeUnpin for WhitespaceMode
impl UnwindSafe for WhitespaceMode
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