Trait DiagramMarkup

Source
pub trait DiagramMarkup {
    // Required method
    fn as_svg(&self) -> Result<Svg, SubplotError>;
}
Expand description

A code block with markup for a diagram.

The code block will be converted to an SVG image using an external filter such as Graphviz dot or plantuml. SVG is the chosen image format as it’s suitable for all kinds of output formats from typesetting.

This trait defines the interface for different kinds of markup conversions. There’s only one function that needs to be defined for the trait.

Required Methods§

Source

fn as_svg(&self) -> Result<Svg, SubplotError>

Convert the markup into an SVG.

Implementors§