Trait extstd::Utf8Container
source · pub trait Utf8Container {
// Required methods
fn slice(&self, start: usize, end: usize) -> &str;
fn from(&self, start: usize) -> &str;
fn to(&self, end: usize) -> &str;
fn divide(&self, mid: usize) -> (&str, &str);
fn find_range<'a>(
&'a self,
start: impl Pattern<'a>,
end: impl Pattern<'a>
) -> Option<Range<usize>>;
fn nth_char(&self, n: usize) -> Option<char>;
fn last_char(&self) -> Option<char>;
fn num_chars(&self) -> usize;
fn byte_index_of(&self, i: usize) -> usize;
}