pub enum Granularity {
Char,
Word,
Sentence,
}Expand description
How tightly a tracked replacement / redline is chunked.
Variants§
Char
Character-level (tightest; can split words).
Word
Word-level. Default.
Sentence
Whole changed sentences become one deletion + insertion.
Implementations§
Trait Implementations§
Source§impl Clone for Granularity
impl Clone for Granularity
impl Copy for Granularity
Source§impl Debug for Granularity
impl Debug for Granularity
Source§impl Default for Granularity
impl Default for Granularity
impl Eq for Granularity
Source§impl FromStr for Granularity
impl FromStr for Granularity
Source§impl PartialEq for Granularity
impl PartialEq for Granularity
impl StructuralPartialEq for Granularity
Auto Trait Implementations§
impl Freeze for Granularity
impl RefUnwindSafe for Granularity
impl Send for Granularity
impl Sync for Granularity
impl Unpin for Granularity
impl UnsafeUnpin for Granularity
impl UnwindSafe for Granularity
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
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.