Trait magic_regexp::AsRegex

source ·
pub trait AsRegex: ToString {
    // Provided method
    fn as_regex(&self) -> Result<Regex> { ... }
}
Expand description

A trait, which allows to convert something to a regex. Mostly needed to work with this lib and Regex crate.

Provided Methods§

source

fn as_regex(&self) -> Result<Regex>

Returns the regex, which represents the wanted statement.

Implementations on Foreign Types§

source§

impl AsRegex for Regex

Implementors§

source§

impl<'a> AsRegex for Input<'a>

source§

impl<'a> AsRegex for Type<'a>