pub trait CollectRegexSet {
// Required method
fn collect_regex_set(self) -> Result<RegexSet, Error>;
}
Expand description
A trait for collecting an iterator into a [RegexSet
].
Required Methods§
sourcefn collect_regex_set(self) -> Result<RegexSet, Error>
fn collect_regex_set(self) -> Result<RegexSet, Error>
Collects the iterator 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,
via the *_regex_set
methods.
Returns an [Error
] if any conversion fails.