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
Numbers
different from 0- nonempty
String
s andList
s
Everything else is considered to be "falsy"
fn type_string(&self) -> &'static str
Return the stringified type of the value