openzeppelin_monitor::utils

Function split_expression

Source
pub fn split_expression(expr: &str) -> Option<(&str, &str, &str)>
Expand description

Splits an expression into a tuple of (left, operator, right)

§Arguments

  • expr - The expression to split

§Returns

An Option containing the split expression if successful, None otherwise