Trait subplot::GraphMarkup[][src]

pub trait GraphMarkup {
    fn as_svg(&self) -> Result<Vec<u8>>;
}
Expand description

A code block with markup for a graph.

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

Convert the markup into an SVG.

Implementors