pub trait StrExt: AsRef<str> {
// Provided method
fn strip_end_counted(&self, count: usize) -> &str { ... }
}Expand description
Extension trait adding a method to str
pub trait StrExt: AsRef<str> {
// Provided method
fn strip_end_counted(&self, count: usize) -> &str { ... }
}Extension trait adding a method to str