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

pub enum Value {
    Empty(Position),
    Boolean(Positioned<bool>),
    Int(Positioned<i64>),
    Float(Positioned<f64>),
    String(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]

[src]

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

[src]

Returns a stringified version of the Value.

[src]

Returns the position for a Value.

[src]

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

Trait Implementations

impl Debug for Value
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Value
[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 Clone for Value
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Value

impl Sync for Value