Struct BufferedStandardStream

struct BufferedStandardStream { ... }

Like StandardStream, but does buffered writing.

Implementations

impl BufferedStandardStream

fn stdout(choice: ColorChoice) -> BufferedStandardStream

Create a new BufferedStandardStream with 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 WriteColor trait.

fn stderr(choice: ColorChoice) -> BufferedStandardStream

Create a new BufferedStandardStream with 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 WriteColor trait.

impl Debug for BufferedStandardStream

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl Freeze for BufferedStandardStream

impl RefUnwindSafe for BufferedStandardStream

impl Send for BufferedStandardStream

impl Sync for BufferedStandardStream

impl Unpin for BufferedStandardStream

impl UnwindSafe for BufferedStandardStream

impl Write for BufferedStandardStream

fn write(self: &mut Self, b: &[u8]) -> io::Result<usize>
fn flush(self: &mut Self) -> io::Result<()>

impl WriteColor for BufferedStandardStream

fn supports_color(self: &Self) -> bool
fn supports_hyperlinks(self: &Self) -> bool
fn set_color(self: &mut Self, spec: &ColorSpec) -> io::Result<()>
fn set_hyperlink(self: &mut Self, link: &HyperlinkSpec<'_>) -> io::Result<()>
fn reset(self: &mut Self) -> io::Result<()>
fn is_synchronous(self: &Self) -> bool

impl<T> Any for BufferedStandardStream

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for BufferedStandardStream

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for BufferedStandardStream

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for BufferedStandardStream

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for BufferedStandardStream

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for BufferedStandardStream

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for BufferedStandardStream

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>