pub enum Output {
    StdOut(Stdout),
    File(File),
}
Expand description

An opend outup stream which can provide a io::Write interface.

Variants

StdOut(Stdout)

File(File)

Implementations

Either calls stdout or File::create depending on io_arg.

Wraps either standard out or the file in a Box<dyn Write>. In case of Output::StdOut standard out will be locked. In case of Output::File the file will be wrapped in std::io::BufWriter in order to minimize system calls.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.