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§
Sourcefn matches_regex(&self, regex: &str) -> bool
fn matches_regex(&self, regex: &str) -> bool
Returns true if it matches the given Regex