pub trait Slice<R> {
// Required method
fn slice(&self, range: R) -> Self;
}
Expand description
Slicing operations using ranges.
This trait is loosely based on
Index
, but can actually return
something else than a &[T]
or &str
pub trait Slice<R> {
// Required method
fn slice(&self, range: R) -> Self;
}
Slicing operations using ranges.
This trait is loosely based on
Index
, but can actually return
something else than a &[T]
or &str