Trait ANSIFmt

Source
pub trait ANSIFmt {
    // Required method
    fn fmt_ansi_prefix<W: Write>(&self, f: &mut W) -> Result;

    // Provided method
    fn fmt_ansi_suffix<W: Write>(&self, f: &mut W) -> Result { ... }
}
Expand description

A trait which prints an ANSI prefix and suffix.

Required Methods§

Source

fn fmt_ansi_prefix<W: Write>(&self, f: &mut W) -> Result

Print ANSI prefix.

Provided Methods§

Source

fn fmt_ansi_suffix<W: Write>(&self, f: &mut W) -> Result

Print ANSI suffix.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<C> ANSIFmt for &C
where C: ANSIFmt,

Implementors§