Function yard::evaluate [−][src]
pub fn evaluate(code: &str) -> Result<i32, String>
Expand description
evaluate is a wrapper reducing the amount of code needed to process a string. #Example
fn main() { let code = "3 + 4"; if let Ok(total) = yard::evaluate(&code) { println!("{}", total); } }