pub fn write(&mut self) -> Box<dyn Write + '_> {
        match self {
            Output::StdOut(stream) => Box::new(stream.lock()),
            Output::File(file) => Box::new(BufWriter::new(file)),
        }
    }
/// Wraps either standard out or the file in a `Box<dyn Write>`. The resulting writer mutably
/// borrows the instance, since it may lock standard out. A file will be wrapped in a
/// `BufWriter` in order to minimize system calls.
Wraps either standard out or the file in a `Box`. The resulting writer mutably
borrows the instance, since it may lock standard out. A file will be wrapped in a
`BufWriter` in order to minimize system calls.
Wraps either standard out or the file in a ` Box ` . The resulting writer mutably borrows the instance since it may lock standard out . A file will be wrapped in a ` BufWriter ` in order to minimize system calls .
pub fn write(&mut self) -> Box<dyn Write + '_> {
        match self {
            Output::StdOut(stream) => Box::new(stream.lock()),
            Output::File(file) => Box::new(BufWriter::new(file)),
        }
    }
pub fn write ( & mut self ) -> Box < dyn Write + ' _ > { match self { Output :: StdOut ( stream ) => Box :: new ( stream . lock ( ) ) , Output :: File ( file ) => Box :: new ( BufWriter :: new ( file ) ) , } }
Wraps either standard out or the file in a `Box<dyn Write>`.
Wraps either standard out or the file in a ` Box<dyn Write > ` .
&mut self