Struct Ansi

struct Ansi<W>(_)

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 WriteColor using standard ANSI escape sequences.

fn into_inner(self: Self) -> W

Consume this Ansi 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 Ansi<W>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Ansi<W>

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

impl<T> BorrowMut for Ansi<W>

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

impl<T> CloneToUninit for Ansi<W>

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

impl<T> From for Ansi<W>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Ansi<W>

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

impl<T, U> Into for Ansi<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 Ansi<W>

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

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

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

impl<W> Freeze for Ansi<W>

impl<W> RefUnwindSafe for Ansi<W>

impl<W> Send for Ansi<W>

impl<W> Sync for Ansi<W>

impl<W> Unpin for Ansi<W>

impl<W> UnwindSafe for Ansi<W>

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

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

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

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

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

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

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

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