pub struct Differ { /* private fields */ }Expand description
Main differ engine
Implementations§
Source§impl Differ
impl Differ
Sourcepub fn new(config: DiffConfig) -> Self
pub fn new(config: DiffConfig) -> Self
Create a new differ with the given configuration
Sourcepub fn with_progress<F>(self, f: F) -> Self
pub fn with_progress<F>(self, f: F) -> Self
Set a progress callback (receives current bytes, total bytes)
Sourcepub fn diff(self) -> Result<DiffResult>
pub fn diff(self) -> Result<DiffResult>
Run the diff operation
Auto Trait Implementations§
impl Freeze for Differ
impl !RefUnwindSafe for Differ
impl Send for Differ
impl Sync for Differ
impl Unpin for Differ
impl !UnwindSafe for Differ
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