Struct NoColor

struct NoColor<W>(_)

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 WriteColor but drops all color information.

fn into_inner(self: Self) -> W

Consume this NoColor value and return the inner writer.

fn get_ref(self: &Self) -> &W

Return a reference to the inner writer.

fn get_mut(self: &mut Self) -> &mut W

Return a mutable reference to the inner writer.

impl<T> Any for NoColor<W>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for NoColor<W>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for NoColor<W>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for NoColor<W>

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for NoColor<W>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for NoColor<W>

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for NoColor<W>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for NoColor<W>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for NoColor<W>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl<W> Freeze for NoColor<W>

impl<W> RefUnwindSafe for NoColor<W>

impl<W> Send for NoColor<W>

impl<W> Sync for NoColor<W>

impl<W> Unpin for NoColor<W>

impl<W> UnwindSafe for NoColor<W>

impl<W: $crate::clone::Clone> Clone for NoColor<W>

fn clone(self: &Self) -> NoColor<W>

impl<W: $crate::fmt::Debug> Debug for NoColor<W>

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl<W: io::Write> Write for NoColor<W>

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

impl<W: io::Write> WriteColor for NoColor<W>

fn supports_color(self: &Self) -> bool
fn supports_hyperlinks(self: &Self) -> bool
fn set_color(self: &mut Self, _: &ColorSpec) -> io::Result<()>
fn set_hyperlink(self: &mut Self, _: &HyperlinkSpec<'_>) -> io::Result<()>
fn reset(self: &mut Self) -> io::Result<()>
fn is_synchronous(self: &Self) -> bool