pub trait Pattern {
// Required method
fn matches<T: AsRef<str>>(&self, other: T) -> bool;
}Expand description
Pattern that can be matched to string.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".