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

Nil
Bool

Tuple Fields of Bool

0: bool
Number

Tuple Fields of Number

0: f64
Symbol

Tuple Fields of Symbol

0: String1: String2: String3: Option<SymbolResolved>
Keyword

Tuple Fields of Keyword

0: String
Str

Tuple Fields of Str

0: String
Thunk

Tuple Fields of Thunk

0: Box<Calcit>1: Option<Box<Calcit>>
Ref

holding a path to its state

Tuple Fields of Ref

0: String
Tuple

more tagged union type, more like an internal structure

Tuple Fields of Tuple

0: Box<Calcit>1: Box<Calcit>
Recur

not for data, but for recursion

Tuple Fields of Recur

0: CalcitItems
List

Tuple Fields of List

0: CalcitItems
Set

Tuple Fields of Set

0: HashSet<Calcit>
Map

Tuple Fields of Map

0: HashMap<Calcit, Calcit>
Record

Tuple Fields of Record

0: String1: Vec<String>2: Vec<Calcit>
Proc

Tuple Fields of Proc

0: String
Macro

Tuple Fields of Macro

0: String1: String2: NanoId3: CalcitItems4: CalcitItems
Fn

Tuple Fields of Fn

0: String1: String2: NanoId3: CalcitScope4: CalcitItems5: CalcitItems
Syntax

Tuple Fields of Syntax

0: String1: String

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.