Trait stijl::Stream [] [src]

pub trait Stream: Write {
    fn reset(&mut self) -> Result<()>;
fn fg(&mut self, fg: Color) -> Result<()>;
fn em(&mut self) -> Result<()>;
fn is_cli(&self) -> bool; }

An output stream with simple styling.

Required Methods

Return color and emphasis to the default.

Change the foreground color.

Begin emphasized text.

Emphasis stays in effect until reset() is called.

True if the stream is connected to a command-line interface.

Implementations on Foreign Types

impl<'a> Stream for Box<CLIStream + 'a>
[src]

[src]

[src]

[src]

[src]

impl Stream for Box<LockableStream>
[src]

[src]

[src]

[src]

[src]

Implementors