pub trait ANSIFmt {
// Required method
fn fmt_ansi_prefix<W>(&self, f: &mut W) -> Result<(), Error>
where W: Write;
// Provided method
fn fmt_ansi_suffix<W>(&self, f: &mut W) -> Result<(), Error>
where W: Write { ... }
}
Expand description
A trait which prints an ANSI prefix and suffix.
Required Methods§
Provided Methods§
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.