Latex

Trait Latex 

Source
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§

Source

fn fmt_latex(&self, f: &mut Formatter<'_>) -> Result

Format the value as LaTeX.

Provided Methods§

Source

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.

Implementors§