pub struct FileComparator;Expand description
File comparator that combines hashing, timestamps, and diff generation
Implementations§
Source§impl FileComparator
impl FileComparator
Sourcepub fn compare(
source: &Path,
destination: &Path,
strategy: ConflictStrategy,
) -> Result<ComparisonResult>
pub fn compare( source: &Path, destination: &Path, strategy: ConflictStrategy, ) -> Result<ComparisonResult>
Compare two file paths and determine the comparison result
§Errors
Returns an error if file I/O operations fail.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileComparator
impl RefUnwindSafe for FileComparator
impl Send for FileComparator
impl Sync for FileComparator
impl Unpin for FileComparator
impl UnwindSafe for FileComparator
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