Enum ripin::evaluate::IntEvaluator [] [src]

pub enum IntEvaluator<T: PrimInt + Signed> {
    Add,
    Sub,
    Mul,
    Div,
    Rem,
    Neg,
    Pow,
    Swap,
    Zero,
    One,
    // some variants omitted
}

Basic Signed Integer Evaluator for any type that implement PrimInt and Signed Traits.

Variants

"+" will pop 2 operands and push 1.

"-" will pop 2 operands and push 1.

"*" will pop 2 operands and push 1.

"/" will pop 2 operands and push 1.

"%" will pop 2 operands and push 1.

"neg" will pop 1 operand and push 1.

"pow" will pop 2 operands and push 1.

"swap" will pop 2 operands and push 2.

"zero" will pop 0 operand and push 1.

"zero" will pop 0 operand and push 1.

Trait Implementations

impl<T: Debug + PrimInt + Signed> Debug for IntEvaluator<T>
[src]

Formats the value using the given formatter.

impl<T: Copy + PrimInt + Signed> Copy for IntEvaluator<T>
[src]

impl<T: Clone + PrimInt + Signed> Clone for IntEvaluator<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: PrimInt + Signed> Evaluate<T> for IntEvaluator<T>
[src]

The type returned in the event of an evaluation error.

Returns the number of operand this Evaluator needs and will pop() from the stack. Read more

Returns the number of operand this Evaluator will generate and will push() in the stack. Read more

Execute the evaluation with the given stack, returns the Evaluation error if something goes wrong. Read more

impl<'a, T: PrimInt + Signed> TryFromRef<&'a str> for IntEvaluator<T>
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl<T: PrimInt + Signed> Display for IntEvaluator<T>
[src]

Formats the value using the given formatter. Read more