pub struct DiffEngine;Implementations§
Source§impl DiffEngine
impl DiffEngine
Sourcepub fn compare(before_root: &Path, after_root: &Path) -> Result<Vec<DiffEntry>>
pub fn compare(before_root: &Path, after_root: &Path) -> Result<Vec<DiffEntry>>
Compare two directory trees (sequential — for small trees).
Sourcepub fn compare_with_ignore(
before_root: &Path,
after_root: &Path,
ignore: &IgnoreRules,
) -> Result<Vec<DiffEntry>>
pub fn compare_with_ignore( before_root: &Path, after_root: &Path, ignore: &IgnoreRules, ) -> Result<Vec<DiffEntry>>
Compare with ignore rules. Uses parallel processing for the per-file comparison step.
Sourcepub fn compare_with_progress(
before_root: &Path,
after_root: &Path,
ignore: &IgnoreRules,
progress: &dyn ProgressSink,
) -> Result<Vec<DiffEntry>>
pub fn compare_with_progress( before_root: &Path, after_root: &Path, ignore: &IgnoreRules, progress: &dyn ProgressSink, ) -> Result<Vec<DiffEntry>>
Compare with ignore rules and a progress sink.
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more