Struct NoColor
pub struct NoColor<W>(/* private field */);
Satisfies WriteColor but ignores all color options.
Implementations
impl<W: Write> NoColor<W>
fn new(wtr: W) -> NoColor<W>Create a new writer that satisfies
WriteColorbut drops all color information.fn into_inner(self) -> WConsume this
NoColorvalue 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 NoColor<W>
fn clone(&self) -> Self
impl<W: Debug> Debug for NoColor<W>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<W: Write> Write for NoColor<W>
fn write(&mut self, buf: &[u8]) -> Result<usize>fn flush(&mut self) -> Result<()>
impl<W: Write> WriteColor for NoColor<W>
fn supports_color(&self) -> boolfn supports_hyperlinks(&self) -> boolfn set_color(&mut self, &ColorSpec) -> Result<()>fn set_hyperlink(&mut self, &HyperlinkSpec<'_>) -> Result<()>fn reset(&mut self) -> Result<()>fn is_synchronous(&self) -> bool