Skip to main content

parse_predicate

Function parse_predicate 

Source
pub fn parse_predicate(tok: &str) -> Option<(&str, &str, &str)>
Expand description

Parse a compact predicate token col<op>val (e.g. mem>0, state=BlockRecv, name!=x). The operator is the longest match (!=/>=/<=/== before =/>/</~); before it is the column, after it the value. None if no operator is present.