Struct BufferedStandardStream

pub struct BufferedStandardStream { /* private fields */ }

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.

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) -> bool
fn set_color(&mut self, spec: &ColorSpec) -> Result<()>
fn reset(&mut self) -> Result<()>
fn is_synchronous(&self) -> bool

Auto Trait Implementations

impl Freeze for BufferedStandardStream

impl RefUnwindSafe for BufferedStandardStream

impl Send for BufferedStandardStream

impl Sync for BufferedStandardStream

impl Unpin for BufferedStandardStream

impl UnsafeUnpin for BufferedStandardStream

impl UnwindSafe for BufferedStandardStream

Blanket Implementations

impl<T> Any for BufferedStandardStream where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for BufferedStandardStream where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for BufferedStandardStream where T: ?Sized,

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

impl<T> From<T> for BufferedStandardStream

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for BufferedStandardStream where U: From<T>,

fn into(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<U> for BufferedStandardStream where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for BufferedStandardStream where U: TryFrom<T>,

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