[][src]Enum rtlola_interpreter::Value

pub enum Value {
    None,
    Bool(bool),
    Unsigned(u64),
    Signed(i64),
    Float(NotNan<f64>),
    Tuple(Box<[Value]>),
    Str(Box<str>),
    Bytes(Box<[u8]>),
}

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 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

impl Add<Value> for Value[src]

type Output = Value

The resulting type after applying the + operator.

impl BitAnd<Value> for Value[src]

type Output = Value

The resulting type after applying the & operator.

impl BitOr<Value> for Value[src]

type Output = Value

The resulting type after applying the | operator.

impl BitXor<Value> for Value[src]

type Output = Value

The resulting type after applying the ^ operator.

impl Clone for Value[src]

impl Debug for Value[src]

impl Div<Value> for Value[src]

type Output = Value

The resulting type after applying the / operator.

impl Eq for Value[src]

impl Hash for Value[src]

impl Mul<Value> for Value[src]

type Output = Value

The resulting type after applying the * operator.

impl Neg for Value[src]

type Output = Value

The resulting type after applying the - operator.

impl Not for Value[src]

type Output = Value

The resulting type after applying the ! operator.

impl Ord for Value[src]

impl PartialEq<Value> for Value[src]

impl PartialOrd<Value> for Value[src]

impl Rem<Value> for Value[src]

type Output = Value

The resulting type after applying the % operator.

impl Shl<Value> for Value[src]

type Output = Value

The resulting type after applying the << operator.

impl Shr<Value> for Value[src]

type Output = Value

The resulting type after applying the >> operator.

impl StructuralEq for Value[src]

impl StructuralPartialEq for Value[src]

impl Sub<Value> for Value[src]

type Output = Value

The resulting type after applying the - operator.

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
    T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.