fn when(s: &str) -> Result<(Metric, Cmp, f64), String>
count > 100, ratio >= 5%, count < 1.
count > 100
ratio >= 5%
count < 1
Split on the operator rather than on whitespace: ratio>0.05 is what someone types and refusing it teaches nothing.
ratio>0.05