pub trait Latex {
// Required method
fn fmt_latex(&self, f: &mut Formatter<'_>) -> Result;
// Provided method
fn as_display(&self) -> LatexFormatter<'_, Self> { ... }
}Expand description
A trait for types that can be formatted as LaTeX.
Required Methods§
Provided Methods§
Sourcefn as_display(&self) -> LatexFormatter<'_, Self>
fn as_display(&self) -> LatexFormatter<'_, Self>
Wraps the value in a LatexFormatter, which implements Display.
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.