Enum rust_lisp::model::Value [−][src]
pub enum Value {
True,
False,
Int(i32),
Float(f32),
String(String),
Symbol(String),
List(List),
NativeFunc(fn(env: Rc<RefCell<Env>>, args: &Vec<Value>) -> Result<Value, RuntimeError>),
Lambda(Lambda),
TailCall {
func: Rc<Value>,
args: Vec<Value>,
},
}
Expand description
Value
encompasses all possible Lisp values, including atoms, lists, and
others.
Variants
True
False
Int(i32)
Tuple Fields
0: i32
Float(f32)
Tuple Fields
0: f32
String(String)
Tuple Fields
0: String
Symbol(String)
Tuple Fields
0: String
List(List)
Tuple Fields
0: List
NativeFunc(fn(env: Rc<RefCell<Env>>, args: &Vec<Value>) -> Result<Value, RuntimeError>)
Lambda(Lambda)
Tuple Fields
0: Lambda
TailCall
Implementations
Trait Implementations
Creates a value from an iterator. Read more
Creates a value from an iterator. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Value
impl !UnwindSafe for Value
Blanket Implementations
Mutably borrows from an owned value. Read more