pub struct FileCmp { /* private fields */ }
Expand description

A File wrapper which provides methods for doing file comparisons. operations.

Implementations

Returns a file comparer which behaves like a non-existent file.

Returns true if the file has been found.

Returns an ordering between the given FileCmps based on their modification times, if such an ordering exists.

Parameters
  • other: The other FileCmp to compare to.
  • diff_op: The DiffOp to compare file differences. If the files do not differ, they will compare equal regardless of their modification times.
  • promote_newest: If true, indicates that missing files should be considered greater than other files. Otherwise, they are considered less than other files.

Trait Implementations

Formats the value using the given formatter. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.