Skip to main content

Formatter

Trait Formatter 

Source
pub trait Formatter<T> {
    // Required method
    fn format(&self, value: &T) -> String;
}

Required Methods§

Source

fn format(&self, value: &T) -> String

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§