pub struct WordDiffAdapter<'a> { /* private fields */ }Expand description
Bridge a word-diff config + its line buffers into the engine’s
HunkWordDiff hook. The engine owns hunk shaping; this adapter owns the
word-level rendering.
Implementations§
Source§impl<'a> WordDiffAdapter<'a>
impl<'a> WordDiffAdapter<'a>
pub fn new(config: &'a WordDiffConfig<'a>) -> Self
Trait Implementations§
Source§impl HunkWordDiff for WordDiffAdapter<'_>
impl HunkWordDiff for WordDiffAdapter<'_>
Source§fn push_minus(&mut self, content: &[u8])
fn push_minus(&mut self, content: &[u8])
Buffer one removed line’s content for the next word-diff flush.
Source§fn push_plus(&mut self, content: &[u8])
fn push_plus(&mut self, content: &[u8])
Buffer one added line’s content for the next word-diff flush.
Auto Trait Implementations§
impl<'a> Freeze for WordDiffAdapter<'a>
impl<'a> RefUnwindSafe for WordDiffAdapter<'a>
impl<'a> Send for WordDiffAdapter<'a>
impl<'a> Sync for WordDiffAdapter<'a>
impl<'a> Unpin for WordDiffAdapter<'a>
impl<'a> UnsafeUnpin for WordDiffAdapter<'a>
impl<'a> UnwindSafe for WordDiffAdapter<'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