Trait safe_regex::IsMatch
source · pub trait IsMatch {
// Required method
fn is_match(&self, data: &[u8]) -> bool;
// Provided methods
fn assert_match(&self, data: &[u8]) { ... }
fn assert_no_match(&self, data: &[u8]) { ... }
}
Expand description
Provides an is_match
function.
Required Methods§
Provided Methods§
sourcefn assert_match(&self, data: &[u8])
fn assert_match(&self, data: &[u8])
§Panics
Panics when data
does match the regular expression.
sourcefn assert_no_match(&self, data: &[u8])
fn assert_no_match(&self, data: &[u8])
§Panics
Panics when data
does not match the regular expression.