Struct BufferedStandardStream
pub struct BufferedStandardStream { /* private fields */ }
Like StandardStream, but does buffered writing.
Implementations
impl BufferedStandardStream
fn stdout(choice: ColorChoice) -> BufferedStandardStreamCreate a new
BufferedStandardStreamwith the given color preferences that writes to standard output via a buffered writer.On Windows, if coloring is desired and a Windows console could not be found, then ANSI escape sequences are used instead.
The specific color/style settings can be configured when writing via the
WriteColortrait.fn stderr(choice: ColorChoice) -> BufferedStandardStreamCreate a new
BufferedStandardStreamwith the given color preferences that writes to standard error via a buffered writer.On Windows, if coloring is desired and a Windows console could not be found, then ANSI escape sequences are used instead.
The specific color/style settings can be configured when writing via the
WriteColortrait.
Trait Implementations
impl Debug for BufferedStandardStream
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Write for BufferedStandardStream
fn write(&mut self, b: &[u8]) -> Result<usize>fn flush(&mut self) -> Result<()>
impl WriteColor for BufferedStandardStream
fn supports_color(&self) -> boolfn supports_hyperlinks(&self) -> boolfn set_color(&mut self, spec: &ColorSpec) -> Result<()>fn set_hyperlink(&mut self, link: &HyperlinkSpec<'_>) -> Result<()>fn reset(&mut self) -> Result<()>fn is_synchronous(&self) -> bool