Trait zebra_test::command::to_regex::ToRegexSet

source ·
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§

source

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.

Implementations on Foreign Types§

source§

impl ToRegexSet for &RegexSet

source§

fn to_regex_set(&self) -> Result<RegexSet, Error>

source§

impl ToRegexSet for &RegexSetBuilder

source§

fn to_regex_set(&self) -> Result<RegexSet, Error>

source§

impl ToRegexSet for RegexSet

source§

fn to_regex_set(&self) -> Result<RegexSet, Error>

source§

impl ToRegexSet for RegexSetBuilder

source§

fn to_regex_set(&self) -> Result<RegexSet, Error>

Implementors§

source§

impl<T> ToRegexSet for T
where T: ToRegex,