Skip to main content

Module render

Module render 

Source

Structs§

BindNode
Binds the output of a child node into the render context without emitting it.
ChoiceNode
Randomly renders one child node from a list of alternatives.
ProcessorPipelineNode
Applies named processors to a rendered child value from left to right.
RenderState
Mutable state for one render operation.
RuleCallNode
Calls another named rule, or reuses a bound/context value with the same name.
RuleSet
Compiled collection of named rules from the config.
UnsupportedValueNode
Placeholder node for config value types that are not renderable yet.
VariableNode
Looks up a previously bound variable in the current render context.
VecNode
Renders a sequence of child nodes and concatenates their output.
WeightedChoiceNode
Randomly renders one child node using per-child weights.

Enums§

BindMode
Controls whether a binding expression preserves or overwrites an existing value in the render context.
CopperlaceNumber
Numeric scalar used by structured Copperlace values.
CopperlaceValue
Native Copperlace structured render result.
RenderError
Error returned while compiling or rendering Copperlace rules.
StructuredNode
Compiled structured document tree.

Traits§

Processor
String transformer used in template processor pipelines.
TextGeneratorNode
A renderable text-generating piece of a compiled rule.

Functions§

processor
Wraps a processor implementation for insertion into a ProcessorRegistry.
render_config_rule
Compiles a parsed configuration root value and renders one rule.
render_config_rule_structured
Compiles a parsed configuration root value and renders one object-valued rule.
render_config_rule_structured_with_context
Compiles a parsed configuration root value and renders one object-valued rule with initial context.
render_config_rule_with_context
Compiles a parsed configuration root value and renders one rule with initial context.

Type Aliases§

ProcessorRegistry
Registry mapping processor names to processor implementations.
RenderContext
Initial variable bindings for one render operation.