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
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;
}
string contains method