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

A boolean value.

Tuple Fields of Bool

0: bool
Unsigned

An unsigned integer with 64 bits.

Tuple Fields of Unsigned

0: u64
Signed

A signed integer with 64 bits.

Tuple Fields of Signed

0: i64
Float

A double-precision floating-point number that is not NaN.

Tuple Fields of Float

0: NotNan<f64>
Tuple

A tuple of Values.

The nested values can be of different type.

Tuple Fields of Tuple

0: Box<[Value]>
Str

A string that must be utf-8 encoded.

Tuple Fields of Str

0: Box<str>
Bytes

A slice of bytes.

Tuple Fields of Bytes

0: Box<[u8]>

Trait Implementations

The resulting type after applying the + operator.

Performs the + operation. Read more

The resulting type after applying the & operator.

Performs the & operation. Read more

The resulting type after applying the | operator.

Performs the | operation. Read more

The resulting type after applying the ^ operator.

Performs the ^ operation. Read more

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

The resulting type after applying the / operator.

Performs the / operation. Read more

Feeds this value into the given Hasher. Read more

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

The resulting type after applying the * operator.

Performs the * operation. Read more

The resulting type after applying the - operator.

Performs the unary - operation. Read more

The resulting type after applying the ! operator.

Performs the unary ! operation. 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

The resulting type after applying the % operator.

Performs the % operation. Read more

The resulting type after applying the << operator.

Performs the << operation. Read more

The resulting type after applying the >> operator.

Performs the >> operation. Read more

The resulting type after applying the - operator.

Performs the - operation. 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

Compare self to key and return true if they are equal.

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.