Function exmex::eval_str

source ·
pub fn eval_str<T>(text: &str) -> ExResult<T>
where T: DataType + Float, <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.