Enum ucglib::ast::Value[][src]

pub enum Value {
    Empty(Position),
    Boolean(Positioned<bool>),
    Int(Positioned<i64>),
    Float(Positioned<f64>),
    Str(Positioned<String>),
    Symbol(Positioned<String>),
    Tuple(Positioned<FieldList>),
    List(ListDef),
    Selector(SelectorDef),
}

Represents a Value in the UCG parsed AST.

Variants

Methods

impl Value
[src]

Returns the type name of the Value it is called on as a string.

Returns a stringified version of the Value.

Returns the position for a Value.

Returns true if called on a Value that is the same type as itself.

Trait Implementations

impl Debug for Value
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Value
[src]

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

This method tests for !=.

impl Clone for Value
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Value

impl Sync for Value