pub fn from_pairs(pairs: &[(&str, usize)]) -> Result<PatternSet, MatchError>Expand description
Convenience: compile a set of patterns given as (pattern, id) pairs.
Auto-detects whether each pattern is a literal or a regex based on the presence of regex metacharacters.