pub trait AsRegex: ToString { fn as_regex(&self) -> Result<Regex> { ... } }
A trait, which allows to convert something to a regex. Mostly needed to work with this lib and Regex crate.
Returns the regex, which represents the wanted statement.