pub struct DiffGenerator;Expand description
Diff generator for creating visual diffs
Implementations§
Source§impl DiffGenerator
impl DiffGenerator
Sourcepub fn generate(source: &Path, destination: &Path) -> Result<String>
pub fn generate(source: &Path, destination: &Path) -> Result<String>
Generate a color-coded unified diff between two files
§Errors
Returns an error if files cannot be read.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiffGenerator
impl RefUnwindSafe for DiffGenerator
impl Send for DiffGenerator
impl Sync for DiffGenerator
impl Unpin for DiffGenerator
impl UnwindSafe for DiffGenerator
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