Skip to main content

Format

Trait Format 

Source
pub trait Format {
    // Required method
    fn format_message_part(
        &self,
        stream: &mut dyn Write,
        args: &Args<'_>,
    ) -> Result;
}
Expand description

The part of a message which formats a value.

Required Methods§

Source

fn format_message_part(&self, stream: &mut dyn Write, args: &Args<'_>) -> Result

Format this message part.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§