Struct rev_slice::RevSlice[][src]

pub struct RevSlice<T>(_);

A DST newtype providing a reversed view of a slice.

Methods

impl<T> RevSlice<T>
[src]

Provides a reversed view of the reversed slice, aka the original slice.

Provides a reversed view of the reversed slice, aka the original mutable slice.

impl<T> RevSlice<T>
[src]

These methods work like their equivalents in core.

impl<T> RevSlice<T>
[src]

my_slice.rev().iter() and my_slice.iter().rev() are equivalent.

my_slice.rev().iter_mut() and my_slice.iter_mut().rev() are equivalent.

Trait Implementations

impl<T: Debug> Debug for RevSlice<T>
[src]

Formats the value using the given formatter. Read more

impl<T: PartialEq> PartialEq for RevSlice<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Eq> Eq for RevSlice<T>
[src]

impl<T: PartialOrd> PartialOrd for RevSlice<T>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<T: Ord> Ord for RevSlice<T>
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<T> Index<usize> for RevSlice<T>
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl<T> IndexMut<usize> for RevSlice<T>
[src]

Performs the mutable indexing (container[index]) operation.

impl<T> Index<Range<usize>> for RevSlice<T>
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl<T> IndexMut<Range<usize>> for RevSlice<T>
[src]

Performs the mutable indexing (container[index]) operation.

impl<'a, T> IntoIterator for &'a RevSlice<T>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

impl<'a, T> IntoIterator for &'a mut RevSlice<T>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Auto Trait Implementations

impl<T> Send for RevSlice<T> where
    T: Send

impl<T> Sync for RevSlice<T> where
    T: Sync