Module jupiter::ig::builder

source ·
Expand description

Provides DocBuilder which used to create a Doc programmatically.

Many of the performance optimizations of Infograph are based on the fact that a Doc is created once and then never modified. (Of course a new Doc can be created to replace a current version, but the data itself is immutable).

Therefore a DocBuilder along with the helpers provided here is used to setup the data and then converted into a Doc as a final step.

Note that there are also helpers like yaml::hash_to_doc or yaml::list_to_doc which directly transform a given Yaml hash or list into a Doc.

Structs§

  • Provides a builder to generate a Doc.
  • Builds an inner list within a Doc or another element.
  • Builds an inner object or map within a Doc or another element.