pub trait StringIndex {
// Required methods
fn start(&self) -> usize;
fn len(&self) -> Option<usize>;
}Expand description
A usize or a range representing a slice of chars in a string.
This is similar to SliceIndex.
pub trait StringIndex {
// Required methods
fn start(&self) -> usize;
fn len(&self) -> Option<usize>;
}A usize or a range representing a slice of chars in a string.
This is similar to SliceIndex.