pub fn one_of<S>(options: &[S]) -> PrettyRegex<Chain>where
S: Display,
Expand description
Establishes an OR relationship between regular expressions.
§Example
let regex = one_of(&[just("hi"), just("bar")]).to_regex_or_panic();
assert!(regex.is_match("hi"));
assert!(regex.is_match("bar"));
assert!(!regex.is_match("baz"));