[−][src]Struct weave::SimpleNaming
The SimpleNaming is a NamingConvention that has a basename, with the main file having a specified extension, the backup file having a ".bak" extension, and the temp files using a numbered extension starting with ".0". If the names are intended to be compressed, a ".gz" suffix can also be added.
Methods
impl SimpleNaming
[src]
pub fn new<P: AsRef<Path>>(
path: P,
base: &str,
ext: &str,
compressed: bool
) -> SimpleNaming
[src]
path: P,
base: &str,
ext: &str,
compressed: bool
) -> SimpleNaming
pub fn make_name(&self, ext: &str, compressed: bool) -> PathBuf
[src]
Trait Implementations
impl NamingConvention for SimpleNaming
[src]
fn main_file(&self) -> PathBuf
[src]
fn backup_file(&self) -> PathBuf
[src]
fn temp_file(&self) -> Result<(PathBuf, File)>
[src]
fn is_compressed(&self) -> bool
[src]
fn new_temp(&self) -> Result<WriterInfo>
[src]
impl Clone for SimpleNaming
[src]
fn clone(&self) -> SimpleNaming
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SimpleNaming
[src]
Auto Trait Implementations
impl Unpin for SimpleNaming
impl Sync for SimpleNaming
impl Send for SimpleNaming
impl UnwindSafe for SimpleNaming
impl RefUnwindSafe for SimpleNaming
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,