pub trait CharSlice<R> {
// Required method
fn char_slice(&self, r: R) -> &str;
}Expand description
This trait provides the char_slice method.
R should be one of the ranges in std::ops.
Required Methods§
Sourcefn char_slice(&self, r: R) -> &str
fn char_slice(&self, r: R) -> &str
Returns a substring of self specified by the given range.
In case of invalid input, this method will return the empty string.