Struct Ansi
pub struct Ansi<W>(/* private field */);
Satisfies WriteColor using standard ANSI escape sequences.
Implementations
impl<W: Write> Ansi<W>
fn new(wtr: W) -> Ansi<W>Create a new writer that satisfies
WriteColorusing standard ANSI escape sequences.fn into_inner(self) -> WConsume this
Ansivalue and return the inner writer.fn get_ref(&self) -> &WReturn a reference to the inner writer.
fn get_mut(&mut self) -> &mut WReturn a mutable reference to the inner writer.
Trait Implementations
impl<W: Clone> Clone for Ansi<W>
fn clone(&self) -> Self
impl<W: Debug> Debug for Ansi<W>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<W: Write> Write for Ansi<W>
fn write(&mut self, buf: &[u8]) -> Result<usize>fn write_all(&mut self, buf: &[u8]) -> Result<()>fn flush(&mut self) -> Result<()>
impl<W: Write> WriteColor for Ansi<W>
fn supports_color(&self) -> boolfn supports_hyperlinks(&self) -> boolfn set_color(&mut self, spec: &ColorSpec) -> Result<()>fn set_hyperlink(&mut self, link: &HyperlinkSpec<'_>) -> Result<()>fn reset(&mut self) -> Result<()>fn is_synchronous(&self) -> bool