Enum fcmp::MissingFileBehavior
source · [−]#[repr(u8)]
pub enum MissingFileBehavior {
Oldest,
Newest,
Ignore,
Error,
}Expand description
Options for handling missing files.
Variants
Oldest
Treat missing files as older than all others.
Newest
Treat missing files as newer than all others.
Ignore
Ignore the file if it is missing.
Error
Return an error if the file is missing.
Trait Implementations
sourceimpl ArgEnum for MissingFileBehavior
impl ArgEnum for MissingFileBehavior
sourcefn value_variants<'a>() -> &'a [Self]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
fn value_variants<'a>() -> &'a [Self]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
All possible argument values, in display order.
sourcefn to_possible_value<'a>(&self) -> Option<PossibleValue<'a>>
fn to_possible_value<'a>(&self) -> Option<PossibleValue<'a>>
The canonical argument value. Read more
sourceimpl Clone for MissingFileBehavior
impl Clone for MissingFileBehavior
sourcefn clone(&self) -> MissingFileBehavior
fn clone(&self) -> MissingFileBehavior
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for MissingFileBehavior
impl Debug for MissingFileBehavior
sourceimpl FromStr for MissingFileBehavior
impl FromStr for MissingFileBehavior
impl Copy for MissingFileBehavior
impl Eq for MissingFileBehavior
impl StructuralEq for MissingFileBehavior
impl StructuralPartialEq for MissingFileBehavior
Auto Trait Implementations
impl RefUnwindSafe for MissingFileBehavior
impl Send for MissingFileBehavior
impl Sync for MissingFileBehavior
impl Unpin for MissingFileBehavior
impl UnwindSafe for MissingFileBehavior
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more