Struct log4rs::encode::writer::AnsiWriter [] [src]

pub struct AnsiWriter<W>(pub W);

An encode::Writer that wraps an io::Writer, emitting ANSI escape codes for text style.

Trait Implementations

impl<W: Write> Write for AnsiWriter<W>
[src]

fn write(&mut self, buf: &[u8]) -> Result<usize>

fn flush(&mut self) -> Result<()>

fn write_all(&mut self, buf: &[u8]) -> Result<()>

fn write_fmt(&mut self, fmt: Arguments) -> Result<()>

fn by_ref(&mut self) -> &mut Self
1.0.0

impl<W: Write> Write for AnsiWriter<W>
[src]

fn set_style(&mut self, style: &Style) -> Result<()>

Derived Implementations

impl<W: Debug> Debug for AnsiWriter<W>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result