Enum lichen::var::Var [] [src]

pub enum Var {
    String(String),
    Num(f32),
    Bool(bool),
    Sym(String),
}

Supported Var Types

These are parsed from IR variants

Variants

Methods

impl Var
[src]

Get any underlying number

Trait Implementations

impl Debug for Var
[src]

Formats the value using the given formatter.

impl Clone for Var
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Var
[src]

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

This method tests for !=.

impl ToString for Var
[src]

Converts the given value to a String. Read more

impl From<bool> for Var
[src]

Performs the conversion.

impl From<f32> for Var
[src]

Performs the conversion.

impl From<String> for Var
[src]

Performs the conversion.

impl<'a> From<&'a str> for Var
[src]

Performs the conversion.