Struct weave::SimpleNaming [] [src]

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]

Trait Implementations

impl Debug for SimpleNaming
[src]

Formats the value using the given formatter.

impl Clone for SimpleNaming
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl NamingConvention for SimpleNaming
[src]

Return the pathname of the primary file.

Return the pathname of the backup file.

Create a temporary file for writing. Upon success, returns the full path of the file, and the opened File for writing to the file. The path should refer to a new file that did not exist prior to this call. Read more

Return if compression is requested on main file.

Open a possibly compressed temp file, returning a WriterInfo for it. The stream will be buffered, and possibly compressed. Read more