pub enum PathDiff {
Failure(Error),
TypeMismatch {
expected_path: PathBuf,
actual_path: PathBuf,
expected_type: FileType,
actual_type: FileType,
},
LinkMismatch {
expected_path: PathBuf,
actual_path: PathBuf,
expected_target: PathBuf,
actual_target: PathBuf,
},
ContentMismatch {
expected_path: PathBuf,
actual_path: PathBuf,
expected_content: Data,
actual_content: Data,
},
}
Variants§
Implementations§
source§impl PathDiff
impl PathDiff
sourcepub fn subset_eq_iter(
pattern_root: impl Into<PathBuf>,
actual_root: impl Into<PathBuf>
) -> impl Iterator<Item = Result<(PathBuf, PathBuf), Self>>
Available on crate feature path
only.
pub fn subset_eq_iter( pattern_root: impl Into<PathBuf>, actual_root: impl Into<PathBuf> ) -> impl Iterator<Item = Result<(PathBuf, PathBuf), Self>>
path
only.Report differences between actual_root
and pattern_root
Note: Requires feature flag path
sourcepub fn subset_matches_iter(
pattern_root: impl Into<PathBuf>,
actual_root: impl Into<PathBuf>,
substitutions: &Substitutions
) -> impl Iterator<Item = Result<(PathBuf, PathBuf), Self>> + '_
Available on crate feature path
only.
pub fn subset_matches_iter( pattern_root: impl Into<PathBuf>, actual_root: impl Into<PathBuf>, substitutions: &Substitutions ) -> impl Iterator<Item = Result<(PathBuf, PathBuf), Self>> + '_
path
only.Report differences between actual_root
and pattern_root
Note: Requires feature flag path
Trait Implementations§
source§impl PartialEq for PathDiff
impl PartialEq for PathDiff
impl Eq for PathDiff
impl StructuralPartialEq for PathDiff
Auto Trait Implementations§
impl RefUnwindSafe for PathDiff
impl Send for PathDiff
impl Sync for PathDiff
impl Unpin for PathDiff
impl UnwindSafe for PathDiff
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