regexpr

Trait RegexTestable

Source
pub trait RegexTestable {
    // Required method
    fn matches_regex(&self, regex: &str) -> bool;
}
Expand description

This trait is used to add an extension method matches_regex to &str

Required Methods§

Source

fn matches_regex(&self, regex: &str) -> bool

Returns true if it matches the given Regex

Implementations on Foreign Types§

Source§

impl RegexTestable for &str

Source§

fn matches_regex(&self, regex: &str) -> bool

Implementors§