pub trait ToRegex { fn to_regex(&self) -> Result<Regex, Error>; fn as_str(&self) -> &str; }
Trait to convert string type to regular expressions