pub trait StrMethods {
// Required methods
fn contains_str(self, s: &str) -> bool;
fn starts_with(self, other: &str) -> bool;
fn ends_with(self, other: &str) -> bool;
}Expand description
string contains method
Required Methods§
fn contains_str(self, s: &str) -> bool
fn starts_with(self, other: &str) -> bool
fn ends_with(self, other: &str) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".