Module template_builder

Source

Structs§

BuildContext
CoreTemplateBuildFnTable
Symbol table of functions and methods available in the core template.
Expression
Opaque struct that represents a template value.

Enums§

CoreTemplatePropertyKind

Traits§

CoreTemplatePropertyVar
Wrapper for the core template property types.
TemplateLanguage
Callbacks to build language-specific evaluation objects from AST nodes.

Functions§

build
Builds template evaluation tree from AST nodes, with fresh build context.
build_expression
Builds intermediate expression tree from AST nodes.
build_formattable_list_method
Builds method call expression for printable list property.
build_unformattable_list_method
expect_boolean_expression
expect_integer_expression
expect_isize_expression
If the given expression node is of Integer type, converts it to isize.
expect_plain_text_expression
expect_template_expression
expect_usize_expression
If the given expression node is of Integer type, converts it to usize.
merge_fn_map
parse
Parses text, expands aliases, then builds template evaluation tree.

Type Aliases§

TemplateBuildFunctionFn
Function that translates global function call node.
TemplateBuildFunctionFnMap
Table of functions that translate global function call node.
TemplateBuildMethodFn
Function that translates method call node of self type T.
TemplateBuildMethodFnMap
Table of functions that translate method call node of self type T.