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<()>; }
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.
Implementors
impl Stream for ConStream<Stdout>
impl<'a> Stream for ConStream<StdoutLock<'a>>
impl Stream for ConStream<Stderr>
impl<'a> Stream for ConStream<StderrLock<'a>>
impl Stream for BufStream
impl<T: Write> Stream for TermStream<T>
impl<'a> Stream for Box<Stream + 'a>
impl Stream for Box<LockableStream>