Enum ketree::tree::Expression [] [src]

pub enum Expression<T: 'static + Clone + Debug> {
    Operator(fn(_: Vec<T>) -> T),
    Variable(String),
    Constant(T),
}

Enumerator for the types of data that a Tree vertex might contain.

Operator contains a function of fn(Vec) -> T, Variable contains a String, and Constant contains a type.

Variants

Trait Implementations

impl<T: Clone + 'static + Clone + Debug> Clone for Expression<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Debug + 'static + Clone + Debug> Debug for Expression<T>
[src]

[src]

Formats the value using the given formatter.

impl<T: 'static + Clone + Debug> ForeignValue for Expression<T>
[src]

[src]

Return the value's type name.

[src]

Performs ordered comparison between two values of a foreign type. Read more

[src]

Performs ordered comparison between two values. Read more

[src]

Returns whether the two values are identical. This concept is the same as equality, except in the case of floating point values, where two NaN values are considered identical. Read more

[src]

Tests for equality between two values of a foreign type. Read more

[src]

Tests for equality between two values. Read more

[src]

Format the value in debugging mode. Read more

[src]

Format the value in display mode. Read more

[src]

Returns whether this value is of the named type. Read more

[src]

Calls the value as a function. Read more

[src]

Returns an estimate of the memory held by this value. Read more

impl<T: 'static + Clone + Debug> FromValue for Expression<T>
[src]

[src]

Consumes the Value and returns a Rust value

impl<'value, T: 'static + Clone + Debug> FromValueRef<'value> for &'value Expression<T>
[src]

[src]

Returns the borrowed value