Crate flexgen

Source
Expand description

A flexible, yet simple quote-based code generator for creating beautiful Rust code

Modules§

config
Configuration related items
var
Configuration variable related items

Macros§

import_lists
Import the list of variables from the Config into local bindings that can be interpolated with quote
import_vars
Import the variables from the Config into local variables that can be interpolated with quote
register_fragments
Register code fragments in preparation for code generation

Structs§

CodeGenerator
The actual code generator

Enums§

Error
This error will be returned if any issues arise during the code generation process

Traits§

CodeFragment
A single code fragment - the smallest unit of work

Type Aliases§

CodeFragments
A map of all registered code fragments. Is is returned by a call to register_fragments