pub struct WordDiffConfig<'a> {
pub mode: WordDiffMode,
pub regex: Option<&'a Regex>,
pub colors: &'a DiffColors,
}Expand description
Word-diff configuration for one file pair: the rendering mode, the compiled word regex (None = whitespace tokenization), and the palette.
Fields§
§mode: WordDiffMode§regex: Option<&'a Regex>§colors: &'a DiffColorsAuto Trait Implementations§
impl<'a> Freeze for WordDiffConfig<'a>
impl<'a> RefUnwindSafe for WordDiffConfig<'a>
impl<'a> Send for WordDiffConfig<'a>
impl<'a> Sync for WordDiffConfig<'a>
impl<'a> Unpin for WordDiffConfig<'a>
impl<'a> UnsafeUnpin for WordDiffConfig<'a>
impl<'a> UnwindSafe for WordDiffConfig<'a>
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