pub enum Difference {
SubjectTypesDiffer,
TypesDiffer(PathBuf),
FileMissing(PathBuf, Subject),
DirectoryMissing(PathBuf, Subject),
FileDiffers(PathBuf),
}Expand description
Describes a difference between two Subject paths.
All paths are relative to the subjects,
Variants§
SubjectTypesDiffer
One argument is a file and the other is a directory
TypesDiffer(PathBuf)
One path is a file and the other is a directory
FileMissing(PathBuf, Subject)
Subject is missing a file that the other has
DirectoryMissing(PathBuf, Subject)
Subject is missing a directory that the other has
FileDiffers(PathBuf)
File is different between subjects
Trait Implementations§
Source§impl Clone for Difference
impl Clone for Difference
Source§fn clone(&self) -> Difference
fn clone(&self) -> Difference
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 Difference
impl Debug for Difference
Source§impl Display for Difference
impl Display for Difference
Source§impl PartialEq for Difference
impl PartialEq for Difference
impl Eq for Difference
impl StructuralPartialEq for Difference
Auto Trait Implementations§
impl Freeze for Difference
impl RefUnwindSafe for Difference
impl Send for Difference
impl Sync for Difference
impl Unpin for Difference
impl UnwindSafe for Difference
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