Enum ucglib::build::Val [] [src]

pub enum Val {
    Empty,
    Boolean(bool),
    Int(i64),
    Float(f64),
    String(String),
    List(Vec<Rc<Val>>),
    Tuple(Vec<(Positioned<String>, Rc<Val>)>),
    Macro(MacroDef),
}

The Intermediate representation of a compiled UCG AST.

Variants

Methods

impl Val
[src]

[src]

Returns the Type of a Val as a string.

[src]

Returns true if called with a Val of the same type as itself.

[src]

[src]

Returns the fields if this Val is a tuple. None otherwise.

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl PartialEq for Val
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for Val
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Val
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for Val
[src]

[src]

Formats the value using the given formatter. Read more

impl From<Val> for String
[src]

[src]

Performs the conversion.

impl From<String> for Val
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl !Send for Val

impl !Sync for Val