[−][src]Enum coreutils_core::backup::BackupMode
Convenience Enum to represent the different backup modes. See module documentation for an in-depth overview of what each backup mode means/does.
Variants
No backups will be made.
Backups will be made of the form <filename>~<X>~
where X
is the next backup
number.
The backup method will be consistant with what already exists for the current file.
Backups will be made of the form <filename><suffix>
where suffix
is any
suffix.
Methods
impl BackupMode
[src]
pub fn from_string(string: impl AsRef<str>) -> Self
[src]
Creates an instance of BackupMode
from a string slice. Any invalid input will
result in BackupMode::Existing
to be returned.
Trait Implementations
impl Clone for BackupMode
[src]
fn clone(&self) -> BackupMode
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BackupMode
[src]
impl Eq for BackupMode
[src]
impl<'_> From<&'_ str> for BackupMode
[src]
fn from(string: &str) -> Self
[src]
Creates an instance of BackupMode
from a string slice. Any invalid input will
result in BackupMode::Existing
to be returned.
impl PartialEq<BackupMode> for BackupMode
[src]
impl StructuralEq for BackupMode
[src]
impl StructuralPartialEq for BackupMode
[src]
Auto Trait Implementations
impl RefUnwindSafe for BackupMode
impl Send for BackupMode
impl Sync for BackupMode
impl Unpin for BackupMode
impl UnwindSafe for BackupMode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,