Enum rurtle::environ::value::Value
[−]
[src]
pub enum Value {
Nothing,
Number(f32),
String(String),
List(Vec<Value>),
}Enum combining the possible Rurtle value types
Variants
Nothing | |
Number | |
String | |
List |
Methods
impl Value
fn boolean(&self) -> bool
Return the given Value's boolean value. Objects considered true are
Numbersdifferent from 0- nonempty
Strings andLists
Everything else is considered to be "falsy"
fn type_string(&self) -> &'static str
Return the stringified type of the value