Skip to main content

arith

Function arith 

Source
pub fn arith(
    op: Op,
    left: &RuntimeValue,
    right: &RuntimeValue,
    recurse: &dyn Fn(Op, RuntimeValue, RuntimeValue) -> Result<RuntimeValue, String>,
) -> Option<Result<RuntimeValue, String>>
Expand description

Apply op when either operand is an exact type; None when neither is.