pub struct DiffEngine;Expand description
Generates and applies diffs between file versions
Implementations§
Source§impl DiffEngine
impl DiffEngine
Sourcepub fn generate_unified_diff(
&self,
old: &str,
new: &str,
path: PathBuf,
) -> Result<FileDiff, FileError>
pub fn generate_unified_diff( &self, old: &str, new: &str, path: PathBuf, ) -> Result<FileDiff, FileError>
Sourcepub fn generate_side_by_side_diff(
&self,
old: &str,
new: &str,
path: PathBuf,
) -> Result<FileDiff, FileError>
pub fn generate_side_by_side_diff( &self, old: &str, new: &str, path: PathBuf, ) -> Result<FileDiff, FileError>
Trait Implementations§
Source§impl Clone for DiffEngine
impl Clone for DiffEngine
Source§fn clone(&self) -> DiffEngine
fn clone(&self) -> DiffEngine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiffEngine
impl Debug for DiffEngine
Auto Trait Implementations§
impl Freeze for DiffEngine
impl RefUnwindSafe for DiffEngine
impl Send for DiffEngine
impl Sync for DiffEngine
impl Unpin 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