Module template_builder

Module template_builder 

Source

Structs§

BuildContext
Environment (locals and self) in a stack frame.
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 usage-context-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.
builtin_formattable_list_methods
Creates new symbol table for printable list property.
builtin_unformattable_list_methods
Creates new symbol table for unprintable list property.
expect_boolean_expression
expect_integer_expression
expect_isize_expression
If the given expression node is of Integer type, converts it to isize.
expect_serialize_expression
expect_stringify_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§

BuildListTemplateMethodFn
Function that translates method call node of ListTemplate.
BuildListTemplateMethodFnMap
Table of functions that translate method call node of ListTemplate.
BuildTemplateMethodFn
Function that translates method call node of Template.
BuildTemplateMethodFnMap
Table of functions that translate method call node of Template.
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.