Enum ripin::evaluate::FloatEvaluator [] [src]

pub enum FloatEvaluator<T: Float> {
    Add,
    Sub,
    Mul,
    Div,
    Rem,
    Neg,
    Sqrt,
    Pow,
    Log2,
    Exp,
    Swap,
    Zero,
    One,
    Round,
    // some variants omitted
}

Basic Float Evaluator for any type that implement the Float Trait.

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.

"sqrt" will pop 1 operand and push 1.

"pow" will pop 2 operands and push 1.

"log2" will pop 1 operand and push 1.

"exp" will pop 1 operand 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.

"round" will pop 1 operand and push 1.

Trait Implementations

impl<T: Debug + Float> Debug for FloatEvaluator<T>
[src]

Formats the value using the given formatter.

impl<T: Copy + Float> Copy for FloatEvaluator<T>
[src]

impl<T: Clone + Float> Clone for FloatEvaluator<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Float> Evaluate<T> for FloatEvaluator<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: Float> TryFromRef<&'a str> for FloatEvaluator<T>
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl<T: Float> Display for FloatEvaluator<T>
[src]

Formats the value using the given formatter. Read more