pub trait ToRegex { // Required method fn to_regex(&self) -> Result<Regex, Error>; }
A trait for converting a value to a [Regex].
Regex
Converts the given value to a [Regex].
Returns an [Error] if conversion fails.
Error