Trait Format

Source
pub trait Format: Write {
    // Provided method
    fn format_msg(&mut self, msg: impl Formattable) -> Result { ... }
}
Expand description

A trait to format a type onto this core::fmt::Write

Provided Methods§

Source

fn format_msg(&mut self, msg: impl Formattable) -> Result

Format the message

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.

Implementors§

Source§

impl<T> Format for T
where T: Write,