Struct gluon_vm::macros::MacroEnv[][src]

pub struct MacroEnv { /* fields omitted */ }

Type containing macros bound to symbols which can be applied on an AST expression to transform it.

Methods

impl MacroEnv
[src]

Creates a new MacroEnv

Inserts a Macro which acts on any occurance of symbol when applied to an expression.

Retrieves the macro bound to symbol

Runs the macros in this MacroEnv on expr using env as the context of the expansion

Trait Implementations

impl Default for MacroEnv
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for MacroEnv

impl Sync for MacroEnv