Trait rev_slice::SliceExt [−][src]
pub trait SliceExt { type Element; fn rev(&self) -> &RevSlice<Self::Element>; fn rev_mut(&mut self) -> &mut RevSlice<Self::Element>; }
Adds .rev()
and .rev_mut()
methods to slices.
There's no reason to implement this yourself.
Associated Types
type Element
The element type of the slice
Required Methods
fn rev(&self) -> &RevSlice<Self::Element>
Get a proxy providing a reversed view of the slice.
fn rev_mut(&mut self) -> &mut RevSlice<Self::Element>
Get a proxy providing a mutable reversed view of the mutable slice.
Implementors
impl<T> SliceExt for [T] type Element = T;