pub trait Format<PrefixWs, Args>: Formattable {
// Required method
fn format(
&mut self,
ctx: &mut Context<'_>,
prefix_ws: PrefixWs,
args: Args,
) -> FormatOutput;
}Expand description
Type formatting
Required Methods§
Sourcefn format(
&mut self,
ctx: &mut Context<'_>,
prefix_ws: PrefixWs,
args: Args,
) -> FormatOutput
fn format( &mut self, ctx: &mut Context<'_>, prefix_ws: PrefixWs, args: Args, ) -> FormatOutput
Formats this type.
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.