Crate syntree_layout

source ·

Structs

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

Enums

Traits

  • 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.
  • 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 Definitions

  • 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 type returned from this crate’s functions