pub trait LangItem<L>{
// Required method
fn format(
&self,
fmt: &mut Formatter<'_>,
config: &L::Config,
format: &L::Format,
) -> Result;
}
Expand description
A type-erased holder for language-specific items.
Carries formatting and coercion functions like LangItem to allow language specific processing to work.
Required Methods§
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.