Structs§
Enums§
- Calc
Type - enum CalcType is a type containing operations used in the calculator.
Functions§
- eval
eval
takes a&str
and a&mut VecDeque<f64>
, evaluates the expression, and prints the result, pushing the results onto the stack of type VecDequeprovided as a parameter. - safe_
eval safe_eval
takes a&str
evaluates the expression, returning the resulting stack as a Result if the expression is valid, or an Err if the expression is invalid or otherwise cannot be evaluated.- safe_
eval_ with_ stack safe_eval_with_stack
takes an&str
expression, and a stackVecDeque<f64>
, and evaluates the expression, returning the resulting stack as a Result if the if the expression is valid, or an Err if the expression is invalid or otherwise cannot be evaluated.- str_
to_ calc_ type - str_to_calc_type converts a string to an optional
CalcType
.