pub trait ToRegexSet {
// Required method
fn to_regex_set(&self) -> Result<RegexSet, Error>;
}
Expand description
A trait for converting a value to a [RegexSet
].
Required Methods§
sourcefn to_regex_set(&self) -> Result<RegexSet, Error>
fn to_regex_set(&self) -> Result<RegexSet, Error>
Converts the given values to a [RegexSet
].
When converting from a [Regex
] or [RegexBuilder
],
resets match flags and limits to the defaults.
Use a [RegexSet
] or [RegexSetBuilder
] to preserve these settings.
Returns an [Error
] if any conversion fails.