Struct selfish::Value
[−]
[src]
pub struct Value(_);
Methods
impl Value
[src]
fn new(v: Type) -> Self
fn int(v: isize) -> Self
fn float(v: f64) -> Self
fn boolean(v: bool) -> Self
fn symbol(v: String) -> Self
fn string(v: String) -> Self
fn keyword(v: String) -> Self
fn list(v: List) -> Self
fn vector(v: List) -> Self
fn func(v: fn(_: List) -> LispResult) -> Self
fn atom(v: Value) -> Self
fn map(v: HashMap<String, Value>) -> Self
fn nothing() -> Self
fn closure(binds: Vec<String>, body: Value, env: Environment) -> Self
fn macros(closure: Closure) -> Self
Methods from Deref<Target = Rc<Type>>
Trait Implementations
impl Clone for Value
[src]
fn clone(&self) -> Value
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Value
[src]
impl PartialEq for Value
[src]
fn eq(&self, __arg_0: &Value) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Value) -> bool
This method tests for !=
.