Function exmex::eval_str[][src]

pub fn eval_str<T: Float + FromStr + Debug>(text: &str) -> ExResult<T> where
    <T as FromStr>::Err: Debug
Expand description

Parses a string, evaluates the expression, and returns the resulting number.

Errrors

In case the parsing went wrong, e.g., due to an invalid input string, an ExError is returned.