Struct backdown::dup::DupFileRef
source · pub struct DupFileRef {
pub dup_set_idx: usize,
pub dup_file_idx: usize,
}
Fields§
§dup_set_idx: usize
§dup_file_idx: usize
Implementations§
source§impl DupFileRef
impl DupFileRef
pub fn path(self, dups: &[DupSet]) -> &Path
pub fn file_name(self, dups: &[DupSet]) -> String
sourcepub fn copy_name(self, dups: &[DupSet]) -> Option<&str>
pub fn copy_name(self, dups: &[DupSet]) -> Option<&str>
get the file name when the file has a name like “thing (3).jpg” or “thing (3rd copy).png”
sourcepub fn is_copy_named(self, dups: &[DupSet]) -> bool
pub fn is_copy_named(self, dups: &[DupSet]) -> bool
tells whether the file has a name like “thing (3).jpg” or “thing (3rd copy).png”
Trait Implementations§
source§impl Clone for DupFileRef
impl Clone for DupFileRef
source§fn clone(&self) -> DupFileRef
fn clone(&self) -> DupFileRef
Returns a copy 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 DupFileRef
impl Debug for DupFileRef
source§impl Hash for DupFileRef
impl Hash for DupFileRef
source§impl PartialEq<DupFileRef> for DupFileRef
impl PartialEq<DupFileRef> for DupFileRef
source§fn eq(&self, other: &DupFileRef) -> bool
fn eq(&self, other: &DupFileRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DupFileRef
impl Eq for DupFileRef
impl StructuralEq for DupFileRef
impl StructuralPartialEq for DupFileRef
Auto Trait Implementations§
impl RefUnwindSafe for DupFileRef
impl Send for DupFileRef
impl Sync for DupFileRef
impl Unpin for DupFileRef
impl UnwindSafe for DupFileRef
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