Trait rev_slice::SliceExt

source ·
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.

Required Associated Types§

The element type of the slice

Required Methods§

Get a proxy providing a reversed view of the slice.

Get a proxy providing a mutable reversed view of the mutable slice.

Implementations on Foreign Types§

Implementors§