InputArgReader

Type Alias InputArgReader 

Source
pub type InputArgReader = Either<StdinLock<'static>, BufReader<File>>;
Expand description

The type of the readers returned by InputArg::open().

This type implements std::io::BufRead.

Aliased Type§

pub enum InputArgReader {
    Left(StdinLock<'static>),
    Right(BufReader<File>),
}

Variants§

§

Left(StdinLock<'static>)

A value of type L.

§

Right(BufReader<File>)

A value of type R.