Struct Rev

Source
pub struct Rev<T>(/* private fields */);
Expand description

A combinator returned from DoubleEndedNonEmptyIntoIter::rev.

See the method for more details.

Trait Implementations§

Source§

impl<T: DoubleEndedNonEmptyIntoIter> DoubleEndedNonEmptyIntoIter for Rev<T>

Source§

fn into_last_and_remaining(self) -> (Self::Item, Self::IntoIter)

Splits the collection into last element and an iterator of remaining elements.
Source§

fn rev(self) -> Rev<Self>

Reverses the direction of the iterator.
Source§

impl<T: IntoIterator> IntoIterator for Rev<T>

Source§

type Item = <T as IntoIterator>::Item

The type of the elements being iterated over.
Source§

type IntoIter = Rev<<T as IntoIterator>::IntoIter>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<T: DoubleEndedNonEmptyIntoIter> NonEmptyIntoIter for Rev<T>

Source§

fn into_first_and_remaining(self) -> (Self::Item, Self::IntoIter)

Splits the collection into first element and an iterator of remaining elements.
Source§

fn map<U, F>(self, f: F) -> Map<Self, F>
where F: FnMut(Self::Item) -> U,

Applies function or closure f to each item. Read more
Source§

fn reduce<F>(self, f: F) -> Self::Item
where F: FnMut(Self::Item, Self::Item) -> Self::Item,

Repeatedly applies the closure to pair of items. Read more
Source§

fn min(self) -> Self::Item
where Self::Item: Ord,

Finds the minimum value in the iterator according to the Ord impl. Read more
Source§

fn min_by<F>(self, f: F) -> Self::Item
where F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Finds the minimum value in the iterator according to the provided closure. Read more
Source§

fn min_by_key<K, F>(self, f: F) -> Self::Item
where F: FnMut(&Self::Item) -> Ordering,

Finds the minimum value in the iterator according to the Ord impl on the key computed by the closure. Read more
Source§

fn max(self) -> Self::Item
where Self::Item: Ord,

Finds the minimum value in the iterator according to the Ord impl. Read more
Source§

fn max_by<F>(self, f: F) -> Self::Item
where F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Finds the maximum value in the iterator according to the provided closure. Read more
Source§

fn max_by_key<K, F>(self, f: F) -> Self::Item
where F: FnMut(&Self::Item) -> Ordering,

Finds the maximum value in the iterator according to the Ord impl on the key computed by the closure. Read more
Source§

fn collect<T>(self) -> T
where T: FromNonEmptyIterator<Self::Item>,

Creates collection. Read more

Auto Trait Implementations§

§

impl<T> Freeze for Rev<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for Rev<T>
where T: RefUnwindSafe,

§

impl<T> Send for Rev<T>
where T: Send,

§

impl<T> Sync for Rev<T>
where T: Sync,

§

impl<T> Unpin for Rev<T>
where T: Unpin,

§

impl<T> UnwindSafe for Rev<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> SliceOrSized for T