Enum calcit_runner::primes::Calcit [−][src]
pub enum Calcit {
Show 18 variants
Nil,
Bool(bool),
Number(f64),
Symbol(String, String, String, Option<SymbolResolved>),
Keyword(String),
Str(String),
Thunk(Box<Calcit>, Option<Box<Calcit>>),
Ref(String),
Tuple(Box<Calcit>, Box<Calcit>),
Recur(CalcitItems),
List(CalcitItems),
Set(HashSet<Calcit>),
Map(HashMap<Calcit, Calcit>),
Record(String, Vec<String>, Vec<Calcit>),
Proc(String),
Macro(String, String, NanoId, CalcitItems, CalcitItems),
Fn(String, String, NanoId, CalcitScope, CalcitItems, CalcitItems),
Syntax(String, String),
}
Variants
Bool(bool)
Tuple Fields of Bool
0: bool
Number(f64)
Tuple Fields of Number
0: f64
Symbol(String, String, String, Option<SymbolResolved>)
Tuple Fields of Symbol
Keyword(String)
Tuple Fields of Keyword
0: String
Str(String)
Tuple Fields of Str
0: String
Ref(String)
holding a path to its state
Tuple Fields of Ref
0: String
more tagged union type, more like an internal structure
Recur(CalcitItems)
not for data, but for recursion
Tuple Fields of Recur
0: CalcitItems
List(CalcitItems)
Tuple Fields of List
0: CalcitItems
Proc(String)
Tuple Fields of Proc
0: String
Macro(String, String, NanoId, CalcitItems, CalcitItems)
Tuple Fields of Macro
Fn(String, String, NanoId, CalcitScope, CalcitItems, CalcitItems)
Tuple Fields of Fn
Implementations
Trait Implementations
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 Calcit
impl UnwindSafe for Calcit
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self