Html

Trait Html 

Source
pub trait Html {
    const LATEX: bool = false;

    // Required method
    fn print_html<W: Write>(&self, w: &mut W) -> Result<()>;

    // Provided method
    fn html(&self, name: &str) -> Result<()> { ... }
}
Expand description

Describe element in an html page

Provided Associated Constants§

Source

const LATEX: bool = false

Required Methods§

Source

fn print_html<W: Write>(&self, w: &mut W) -> Result<()>

Provided Methods§

Source

fn html(&self, name: &str) -> Result<()>

True if Mathjax need to be loaded

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.

Implementations on Foreign Types§

Source§

impl<G: Draw, F, L> Html for (&[G], F)
where F: FnMut(&G) -> L + Clone, L: Display,

Source§

const LATEX: bool = false

Source§

fn print_html<W: Write>(&self, w: &mut W) -> Result<()>

Implementors§

Source§

impl<F> Html for Basis<F>
where F: Flag + Draw,

Source§

const LATEX: bool = false

Source§

impl<F, N> Html for QFlag<N, F>
where F: Flag + Draw, N: Num + Clone + Display + FromPrimitive,

Source§

const LATEX: bool = false

Source§

impl<F: Draw> Html for F