pub struct DiffEngine { /* private fields */ }Expand description
The main diff engine
Implementations§
Source§impl DiffEngine
impl DiffEngine
pub fn new() -> Self
pub fn with_context(self, lines: usize) -> Self
pub fn with_word_level(self, enabled: bool) -> Self
Sourcepub fn diff_strings(&self, old: &str, new: &str) -> DiffResult
pub fn diff_strings(&self, old: &str, new: &str) -> DiffResult
Compute diff between two strings
Source§impl DiffEngine
impl DiffEngine
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiffEngine
impl RefUnwindSafe for DiffEngine
impl Send for DiffEngine
impl Sync for DiffEngine
impl Unpin for DiffEngine
impl UnsafeUnpin for DiffEngine
impl UnwindSafe for DiffEngine
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