Enum exmex::Node [−][src]
pub enum Node<T: Copy> { Expr(Expression<T>), Num(T), Var(usize), }
Expand description
Nodes are inputs for binary operators. A node can be an expression, a number, or a variable.
Variants
Expr(Expression<T>)
Var(usize)
The contained integer points to the index of the variable in the slice of
variables passed to eval
.
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<T> RefUnwindSafe for Node<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Node<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more