Function regexp_width
pub fn regexp_width(regexp: &str) -> Result<(u64, u64), WidthError>Expand description
The static (min, max) match width of regexp in code points.
regexp is a final to_regexp() output (per-terminal flags baked in as
(?f:…) groups; grammar-wide flags absent). Max width of an unbounded
pattern is WIDTH_UNBOUNDED.