pub trait PatternRef: Sealed {
// Required methods
fn trim_start_matches<'a>(&mut self, s: &'a str) -> &'a str;
fn trim_end_matches<'a>(&mut self, s: &'a str) -> &'a str;
}Expand description
A pattern that, unlike std::str::pattern::Pattern, does not consume the pattern when used.
Required Methods§
fn trim_start_matches<'a>(&mut self, s: &'a str) -> &'a str
fn trim_end_matches<'a>(&mut self, s: &'a str) -> &'a str
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".