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
Expresses the absence of a value.
A boolean value.
Tuple Fields of Bool
0: bool
An unsigned integer with 64 bits.
Tuple Fields of Unsigned
0: u64
A signed integer with 64 bits.
Tuple Fields of Signed
0: i64
A double-precision floating-point number that is not NaN.
A tuple of Value
s.
The nested values can be of different type.
A string that must be utf-8 encoded.
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.
type Output = T
type Output = T
Should always be Self