Trait char_slice::CharSlice
[−]
[src]
pub trait CharSlice<R> { fn char_slice(&self, r: R) -> &str; }
This trait provides the char_slice
method.
R
should be one of the ranges in std::ops
.
Required Methods
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.