Enum std::old_io::FileModeUnstable [-] [+] [src]

pub enum FileMode {
    Open,
    Append,
    Truncate,
}

A mode specifies how a file should be opened or created. These modes are passed to File::open_mode and are used to control where the file is positioned when it is initially opened.

Variants

Open

Opens a file positioned at the beginning.

Append

Opens a file positioned at EOF.

Truncate

Opens a file, truncating it if it already exists.

Trait Implementations

Derived Implementations

impl Debug for FileMode

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Eq for FileMode

impl PartialEq for FileMode

fn eq(&self, __arg_0: &FileMode) -> bool

fn ne(&self, __arg_0: &FileMode) -> bool

impl Clone for FileMode

fn clone(&self) -> FileMode

fn clone_from(&mut self, source: &Self)

impl Copy for FileMode