StrExt

Trait StrExt 

Source
pub trait StrExt: AsRef<str> {
    // Provided method
    fn strip_end_counted(&self, count: usize) -> &str { ... }
}
Available on crate feature parse2 only.
Expand description

Extension trait adding a method to str

Provided Methods§

Source

fn strip_end_counted(&self, count: usize) -> &str

Remove count bytes from the end of self

§Panics

Panics if count > self.len().

Implementations on Foreign Types§

Source§

impl StrExt for str

Implementors§