pub enum Input {
    StdIn(Stdin),
    File(File),
}
Expand description

An opend input stream which can provide a io::Read interface.

Variants

StdIn(Stdin)

File(File)

Implementations

Either calls stdin or File::open depending on io_arg.

Either locks stdin or wraps the file in a BufReader.

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.