Enum rtlola_interpreter::Value
source · 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)
A boolean value.
Unsigned(u64)
An unsigned integer with 64 bits.
Signed(i64)
A signed integer with 64 bits.
Float(NotNan<f64>)
A double-precision floating-point number that is not NaN.
Tuple(Box<[Value]>)
A tuple of Value
s.
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.
Implementations§
Trait Implementations§
source§impl Ord for Value
impl Ord for Value
source§impl PartialEq<Value> for Value
impl PartialEq<Value> for Value
source§impl PartialOrd<Value> for Value
impl PartialOrd<Value> for Value
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Value
impl StructuralEq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.