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
fn reset(&mut self) -> Result<()>
Return color and emphasis to the default.
fn fg(&mut self, fg: Color) -> Result<()>
Change the foreground color.
fn em(&mut self) -> Result<()>
Begin emphasized text.
Emphasis stays in effect until reset()
is called.
fn is_cli(&self) -> bool
True if the stream is connected to a command-line interface.
Implementations on Foreign Types
impl<'a> Stream for Box<CLIStream + 'a>
[src]
impl Stream for Box<LockableStream>
[src]
Implementors
impl Stream for BufStream
impl<T: Write> Stream for TermStream<T>