pub struct Map<S, F> { /* private fields */ }
Expand description
Trait Implementations§
Source§impl<S, F, B> Sequence for Map<S, F>
impl<S, F, B> Sequence for Map<S, F>
type Item = B
type Iter = Map<<S as Sequence>::Iter, F>
Source§fn collect_array<const N: usize>(self) -> [Self::Item; N]where
Self: Sized + ConstMinLen<N>,
fn collect_array<const N: usize>(self) -> [Self::Item; N]where
Self: Sized + ConstMinLen<N>,
Collects this sequence’s elements into an array.
Source§fn map<F, B>(self, f: F) -> Map<Self, F>
fn map<F, B>(self, f: F) -> Map<Self, F>
Returns a new sequence that transforms every element of the original
sequence using
f
.Source§fn enumerate(self) -> Enumerate<Self>where
Self: Sized,
fn enumerate(self) -> Enumerate<Self>where
Self: Sized,
Returns a new sequence that yields the current iteration index
together with every element.
Source§fn const_take_exact<const N: usize>(self) -> ConstTakeExact<Self, N>where
Self: Sized + ConstMinLen<N>,
fn const_take_exact<const N: usize>(self) -> ConstTakeExact<Self, N>where
Self: Sized + ConstMinLen<N>,
Returns a new sequence that yields exactly
N
first elements of the original sequence.impl<S, F, B, const N: usize> ConstMaxLen<N> for Map<S, F>
impl<S, F, B, const N: usize> ConstMinLen<N> for Map<S, F>
Auto Trait Implementations§
impl<S, F> Freeze for Map<S, F>
impl<S, F> RefUnwindSafe for Map<S, F>where
S: RefUnwindSafe,
F: RefUnwindSafe,
impl<S, F> Send for Map<S, F>
impl<S, F> Sync for Map<S, F>
impl<S, F> Unpin for Map<S, F>
impl<S, F> UnwindSafe for Map<S, F>where
S: UnwindSafe,
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more