Struct ucglib::ast::MacroDef[][src]

pub struct MacroDef {
    pub argdefs: Vec<Positioned<String>>,
    pub fields: FieldList,
    pub pos: Position,
}

Encodes a macro expression in the UCG AST..

A macro is a pure function over a tuple. MacroDefs are not closures. They can not reference any values except what is defined in their arguments.

Fields

Methods

impl MacroDef
[src]

Performs typechecking of a ucg macro's arguments to ensure that they are valid for the expressions in the macro.

impl MacroDef
[src]

Expands a ucg Macro using the given arguments into a new Tuple.

Trait Implementations

impl PartialEq for MacroDef
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for MacroDef
[src]

Formats the value using the given formatter. Read more

impl Clone for MacroDef
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for MacroDef

impl Sync for MacroDef