Trait zebra_test::command::to_regex::ToRegex

source ·
pub trait ToRegex {
    // Required method
    fn to_regex(&self) -> Result<Regex, Error>;
}
Expand description

A trait for converting a value to a [Regex].

Required Methods§

source

fn to_regex(&self) -> Result<Regex, Error>

Converts the given value to a [Regex].

Returns an [Error] if conversion fails.

Implementations on Foreign Types§

source§

impl ToRegex for &str

source§

fn to_regex(&self) -> Result<Regex, Error>

source§

impl ToRegex for &String

source§

fn to_regex(&self) -> Result<Regex, Error>

source§

impl ToRegex for &Regex

source§

fn to_regex(&self) -> Result<Regex, Error>

source§

impl ToRegex for &RegexBuilder

source§

fn to_regex(&self) -> Result<Regex, Error>

source§

impl ToRegex for String

source§

fn to_regex(&self) -> Result<Regex, Error>

source§

impl ToRegex for Regex

source§

fn to_regex(&self) -> Result<Regex, Error>

source§

impl ToRegex for RegexBuilder

source§

fn to_regex(&self) -> Result<Regex, Error>

Implementors§