Enum calcit_runner::primes::Calcit [−][src]
pub enum Calcit {
Show 19 variants
Nil,
Bool(bool),
Number(f64),
Symbol {
sym: Arc<str>,
ns: Arc<str>,
at_def: Arc<str>,
resolved: Option<Arc<SymbolResolved>>,
},
Keyword(EdnKwd),
Str(Arc<str>),
Thunk(Arc<Calcit>, Option<Arc<Calcit>>),
Ref(Arc<str>),
Tuple(Arc<Calcit>, Arc<Calcit>),
Buffer(Vec<u8>),
Recur(CalcitItems),
List(CalcitItems),
Set(HashTrieSetSync<Calcit>),
Map(HashTrieMapSync<Calcit, Calcit>),
Record(EdnKwd, Arc<Vec<EdnKwd>>, Arc<Vec<Calcit>>),
Proc(Arc<str>),
Macro {
name: Arc<str>,
def_ns: Arc<str>,
id: Arc<str>,
args: Arc<Vec<Arc<str>>>,
body: Arc<CalcitItems>,
},
Fn {
name: Arc<str>,
def_ns: Arc<str>,
id: Arc<str>,
scope: Arc<CalcitScope>,
args: Arc<Vec<Arc<str>>>,
body: Arc<CalcitItems>,
},
Syntax(CalcitSyntax, Arc<str>),
}
Variants
Nil
Bool(bool)
Tuple Fields
0: bool
Number(f64)
Tuple Fields
0: f64
Symbol
Keyword(EdnKwd)
Tuple Fields
0: EdnKwd
Str(Arc<str>)
Thunk(Arc<Calcit>, Option<Arc<Calcit>>)
Ref(Arc<str>)
holding a path to its state
Tuple(Arc<Calcit>, Arc<Calcit>)
more tagged union type, more like an internal structure
Buffer(Vec<u8>)
to be used by FFIs
Recur(CalcitItems)
Tuple Fields
0: CalcitItems
not for data, but for recursion
List(CalcitItems)
Tuple Fields
0: CalcitItems
Set(HashTrieSetSync<Calcit>)
Tuple Fields
Map(HashTrieMapSync<Calcit, Calcit>)
Tuple Fields
0: HashTrieMapSync<Calcit, Calcit>
Record(EdnKwd, Arc<Vec<EdnKwd>>, Arc<Vec<Calcit>>)
Proc(Arc<str>)
Macro
Fn
Syntax(CalcitSyntax, Arc<str>)
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