[−][src]Trait odds::string::StrSlice
Deprecated:
Use str::get with a range instead
Extension trait for str
for string slicing without panicking
Required methods
fn get_slice<R>(&self, r: R) -> Option<&str> where
R: IndexRange,
R: IndexRange,
Deprecated:
Use str::get with a range instead
Return a slice of the string, if it is in bounds /and on character boundaries/,
otherwise return None
Implementations on Foreign Types
impl StrSlice for str
[src]
fn get_slice<R>(&self, r: R) -> Option<&str> where
R: IndexRange,
[src]
R: IndexRange,