pub trait ConsoleFmt {
// Required method
fn fmt(&self, spec: FormatSpec) -> String;
}Expand description
Formats a value using a FormatSpec.
Required Methods§
Sourcefn fmt(&self, spec: FormatSpec) -> String
fn fmt(&self, spec: FormatSpec) -> String
Formats a value using a FormatSpec.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".