Lines Matching defs:patterns
70 /// independently compiled patterns:
75 /// let patterns = ["foo", "bar"];
76 /// // Both patterns will match different ranges of this string.
79 /// // Compile a set matching any of our patterns.
80 /// let set = RegexSet::new(&patterns).unwrap();
82 /// let regexes: Vec<_> = set.patterns().iter()
87 /// // matching patterns.
97 /// // Matches arrive in the order the constituent patterns were declared,
260 /// Returns the patterns that this set will match on.
263 /// slice returned has exactly as many patterns givens to this regex set,
264 /// and the order of the slice is the same as the order of the patterns
283 /// .map(|match_idx| &set.patterns()[match_idx])
287 pub fn patterns(&self) -> &[String] {