Enum rtlola_interpreter::Value [−][src]
pub enum Value {
None,
Bool(bool),
Unsigned(u64),
Signed(i64),
Float(NotNan<f64>),
Tuple(Box<[Value]>),
Str(Box<str>),
Bytes(Box<[u8]>),
}Expand description
The general type for holding all kinds of values.
Variants
None
Expresses the absence of a value.
Bool(bool)
Tuple Fields
0: boolA boolean value.
Unsigned(u64)
Tuple Fields
0: u64An unsigned integer with 64 bits.
Signed(i64)
Tuple Fields
0: i64A signed integer with 64 bits.
Float(NotNan<f64>)
A double-precision floating-point number that is not NaN.
Tuple(Box<[Value]>)
A tuple of Values.
The nested values can be of different type.
Str(Box<str>)
A string that must be utf-8 encoded.
Bytes(Box<[u8]>)
A slice of bytes.
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 Value
impl UnwindSafe for Value
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.