Enum passerine::common::data::Data [−][src]
pub enum Data {
Heaped(Rc<RefCell<Data>>),
NotInit,
Real(f64),
Integer(i64),
Boolean(bool),
String(String),
Lambda(Rc<Lambda>),
Closure(Box<Closure>),
Kind(String),
Label(Box<String>, Box<Data>),
Unit,
Tuple(Vec<Data>),
}
Expand description
Built-in Passerine datatypes.
Variants
Data on the heap.
Uninitialized data.
Real(f64)
Real Numbers, represented as double-precision floating points.
Tuple Fields of Real
0: f64
Integer(i64)
Integers, currently 64-bit.
Tuple Fields of Integer
0: i64
Boolean(bool)
A boolean, like true or false.
Tuple Fields of Boolean
0: bool
String(String)
A UTF-8 encoded string.
Tuple Fields of String
0: String
Represents a function, ie.e some bytecode without a context.
Some bytecode with a context that can be run.
Kind(String)
Kind
is the base component of an unconstructed label
Tuple Fields of Kind
0: String
A Label is similar to a type, and wraps some data. in the future labels will have associated namespaces.
The empty Tuple
A non-empty Tuple.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Data
impl !UnwindSafe for Data
Blanket Implementations
Mutably borrows from an owned value. Read more