Crate syntree_layout

Crate syntree_layout 

Source

Structs§

EmbeddedNode
The EmbeddedNode is the embedding information for one single tree node. It is used only in a collection type Embedding.
Layouter
The Layouter type provides a simple builder mechanism with a fluent API.
SvgDrawer
The SvgDrawer type provides the transformation of the embedding information into the Svg format.

Enums§

LayouterError
Error type used in this crate

Traits§

Drawer
By implementing this trait anyone can provide his own drawer, for instance one that draws onto a bitmap, if he don’t want to use the SvgDrawer used by the crate by default.
Visualize
The Visualize trait abstracts the visual presentation of the node’s data. It can be implemented by the Tree<T, …>’s node type T when custom visualization is desired. Only mandatory to implement is the visualize method.

Type Aliases§

Embedding
The Embedding is the interface to drawers that need the embedding for the purpose to transform it to their own output format. It is accessible at the Layouter after calling an embed method
Result
Result type returned from this crate’s functions