Enum risp::types::RispType
[−]
[src]
pub enum RispType { Nil, Bool(bool), Int(i64), Str(String), List(Vec<RispType>), Vector(Vec<RispType>), Map(HashMap<String, RispType>), Keyword(String), Symbol(String), Function(fn(_: Vec<RispType>) -> RispResult), RispFunction(RispFunc), }
Variants
Nil
Bool(bool)
Int(i64)
Str(String)
List(Vec<RispType>)
Vector(Vec<RispType>)
Map(HashMap<String, RispType>)
Keyword(String)
Symbol(String)
Function(fn(_: Vec<RispType>) -> RispResult)
RispFunction(RispFunc)
Methods
impl RispType
[src]
fn get<T>(&self, key: &str) -> Result<Option<T>, RispError> where
RispType: Into<Result<T, RispError>>,
RispType: Into<Result<T, RispError>>,
Trait Implementations
impl Into<Result<RispType, RispError>> for RispType
[src]
impl Into<Result<bool, RispError>> for RispType
[src]
impl Into<Result<i64, RispError>> for RispType
[src]
impl Into<Result<String, RispError>> for RispType
[src]
impl Into<Result<HashMap<String, RispType>, RispError>> for RispType
[src]
impl Into<Result<Vec<RispType>, RispError>> for RispType
[src]
impl Into<Result<Vec<i64>, RispError>> for RispType
[src]
impl Debug for RispType
[src]
impl PartialEq for RispType
[src]
fn eq(&self, __arg_0: &RispType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RispType) -> bool
This method tests for !=
.
impl Clone for RispType
[src]
fn clone(&self) -> RispType
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