[][src]Struct weave::SimpleNaming

pub struct SimpleNaming { /* fields omitted */ }

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]

pub fn make_name(&self, ext: &str, compressed: bool) -> PathBuf[src]

Trait Implementations

impl NamingConvention for SimpleNaming[src]

impl Clone for SimpleNaming[src]

impl Debug for SimpleNaming[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]