pub fn anb(values: &[ComponentValue<'_>]) -> Option<(i32, i32)>Expand description
Reads An+B from a list of component values: (A, B), or None if
they aren’t An+B. Values beyond i32 saturate.
assert_eq!(parsec_css::parse_anb("2n+1"), Some((2, 1)));
assert_eq!(parsec_css::parse_anb(" -n- 3 "), Some((-1, -3)));
assert_eq!(parsec_css::parse_anb("+ 2n"), None);