pub struct DirectoryComparison {
pub added: Vec<PathBuf>,
pub modified: Vec<PathBuf>,
pub removed: Vec<PathBuf>,
pub unchanged: Vec<PathBuf>,
}Expand description
Result of comparing two directories recursively
Fields§
§added: Vec<PathBuf>Files present in source but not in destination
modified: Vec<PathBuf>Files with different content between source and destination
removed: Vec<PathBuf>Files present in destination but not in source
unchanged: Vec<PathBuf>Files with identical content in both locations
Implementations§
Source§impl DirectoryComparison
impl DirectoryComparison
Sourcepub const fn is_identical(&self) -> bool
pub const fn is_identical(&self) -> bool
Check if directories are identical (no changes)
Sourcepub const fn change_count(&self) -> usize
pub const fn change_count(&self) -> usize
Count total number of changes
Trait Implementations§
Source§impl Clone for DirectoryComparison
impl Clone for DirectoryComparison
Source§fn clone(&self) -> DirectoryComparison
fn clone(&self) -> DirectoryComparison
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 DirectoryComparison
impl Debug for DirectoryComparison
Source§impl PartialEq for DirectoryComparison
impl PartialEq for DirectoryComparison
impl Eq for DirectoryComparison
impl StructuralPartialEq for DirectoryComparison
Auto Trait Implementations§
impl Freeze for DirectoryComparison
impl RefUnwindSafe for DirectoryComparison
impl Send for DirectoryComparison
impl Sync for DirectoryComparison
impl Unpin for DirectoryComparison
impl UnwindSafe for DirectoryComparison
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