pub struct DuplicatesFinder { /* private fields */ }Implementations§
Source§impl DuplicatesFinder
Checks if the given path is a duplicate file by detecting its
precence in the hashmap.Otherwise store the hash of the file in the hashmap
impl DuplicatesFinder
Checks if the given path is a duplicate file by detecting its precence in the hashmap.Otherwise store the hash of the file in the hashmap
§Arguments
path- APathBufrepresenting the path to the file.
§Returns
Returns Ok(true) if the file is a duplicate, Ok(false) otherwise.
Returns an Err if there was an error while checking for duplicates.
pub fn is_duplicate(&mut self, path: &PathBuf) -> Result<bool, ClineupError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DuplicatesFinder
impl RefUnwindSafe for DuplicatesFinder
impl Send for DuplicatesFinder
impl Sync for DuplicatesFinder
impl Unpin for DuplicatesFinder
impl UnsafeUnpin for DuplicatesFinder
impl UnwindSafe for DuplicatesFinder
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