[][src]Trait odds::string::StrSlice

pub trait StrSlice {
    fn get_slice<R>(&self, r: R) -> Option<&str>
    where
        R: IndexRange
; }
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

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

Loading content...

Implementations on Foreign Types

impl StrSlice for str[src]

Loading content...

Implementors

Loading content...