/// Setup a stdin/stdout connection.
Setup a stdin/stdout connection.
Setup a stdin / stdout connection .
pub fn stdio() -> Result<(Input, Output)> {
    let stdin = io::stdin();
    let stdout = io::stdout();
    let input = Input {
        buf: Vec::new(),
        stdin: BufReader::new(stdin),
    };
    let output = Output {
        stdout: Arc::new(Mutex::new(stdout)),
    };
    Ok((input, output))
}
pub fn stdio ( ) -> Result < ( Input , Output ) > { let stdin = io :: stdin ( ) ; let stdout = io :: stdout ( ) ; let input = Input { buf : Vec :: new ( ) , stdin : BufReader :: new ( stdin ) , } ; let output = Output { stdout : Arc :: new ( Mutex :: new ( stdout ) ) , } ; Ok ( ( input , output ) ) }
Setup a stdin/stdout connection.
Setup a stdin / stdout connection .