pub trait SliceExt {
type Element;
fn rev(&self) -> &RevSlice<Self::Element>;
fn rev_mut(&mut self) -> &mut RevSlice<Self::Element>;
}
Expand description
Adds .rev()
and .rev_mut()
methods to slices.
There’s no reason to implement this yourself.