This is a parser and execution engine for minimal Wireshark®-like filters.
See here for supported syntax.
Usage example:
let filter = "ip.addr in {192.168.1.0/24, 10.1.1.0/24} and payload ~ '(?i)CaSeInSeNsItIvE'";
let expression = parse;
// .. later
let is_match = expression
.matcher
.tcp
.src_ip
.payload
.is_match;
assert_eq!;