pub enum FileComparisonMethod {
Size,
Hash,
Rehash,
Full,
}Expand description
Methods for comparing files.
Variants§
Size
Compare only size and modification time.
Hash
Compare by hash (BLAKE3).
Rehash
Compare by hash, without using the cached hashes.
Full
Compare byte-by-byte.
Trait Implementations§
Source§impl Clone for FileComparisonMethod
impl Clone for FileComparisonMethod
Source§fn clone(&self) -> FileComparisonMethod
fn clone(&self) -> FileComparisonMethod
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 FileComparisonMethod
impl Debug for FileComparisonMethod
Source§impl PartialEq for FileComparisonMethod
impl PartialEq for FileComparisonMethod
impl Copy for FileComparisonMethod
impl Eq for FileComparisonMethod
impl StructuralPartialEq for FileComparisonMethod
Auto Trait Implementations§
impl Freeze for FileComparisonMethod
impl RefUnwindSafe for FileComparisonMethod
impl Send for FileComparisonMethod
impl Sync for FileComparisonMethod
impl Unpin for FileComparisonMethod
impl UnsafeUnpin for FileComparisonMethod
impl UnwindSafe for FileComparisonMethod
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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