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
Auto Trait Implementations
impl<W> Freeze for Ansi<W>
where
W: Freeze,
impl<W> RefUnwindSafe for Ansi<W>
where
W: RefUnwindSafe,
impl<W> Send for Ansi<W>
where
W: Send,
impl<W> Sync for Ansi<W>
where
W: Sync,
impl<W> Unpin for Ansi<W>
where
W: Unpin,
impl<W> UnsafeUnpin for Ansi<W>
where
W: UnsafeUnpin,
impl<W> UnwindSafe for Ansi<W>
where
W: UnwindSafe,
Blanket Implementations
impl<T> Any for Ansi<W>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Ansi<W>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Ansi<W>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Ansi<W>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Ansi<W>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for Ansi<W>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Ansi<W>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Ansi<W>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Ansi<W>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>