pub struct Map<I, F> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<I: AsyncIterator, F, B> AsyncIterator for Map<I, F>
impl<I: AsyncIterator, F, B> AsyncIterator for Map<I, F>
type Item = B
async fn next(&mut self) -> Option<Self::Item>
Source§fn size_hint(&self) -> (usize, Option<usize>)
fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator. Read more
fn awaited(self) -> Awaited<Self>
fn map<F, B>(self, f: F) -> Map<Self, F>
fn amap<F, B, O>(self, f: F) -> AsyncMap<Self, F>
fn enumerate(self) -> Enumerate<Self>where
Self: Sized,
fn peekable(self) -> Peekable<Self>where
Self: Sized,
fn filter<P>(self, predicate: P) -> Filter<Self, P>
Source§fn afilter<P, F>(self, predicate: P) -> AsyncFilter<Self, P>
fn afilter<P, F>(self, predicate: P) -> AsyncFilter<Self, P>
Note: Read more
fn filter_map<F, B>(self, operation: F) -> FilterMap<Self, F>
fn afilter_map<F, B, O>(self, operation: F) -> AsyncFilterMap<Self, F>
fn copied<'a, T>(self) -> Copied<Self>
fn cloned<'a, T>(self) -> Cloned<Self>
fn inspect<P>(self, op: P) -> Inspect<Self, P>
fn fuse(self) -> Fuse<Self>where
Self: Sized,
fn flatten(self) -> Flatten<Self, Self::Item>
fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F>
fn aflat_map<U, F, B>(self, f: F) -> AsyncFlatMap<Self, U, F, B>
fn zip<U>(self, other: U) -> Zip<Self, <U as IntoAsyncIterator>::AsyncIter>where
Self: Sized,
U: IntoAsyncIterator,
fn intersperse(self, separator: Self::Item) -> Intersperse<Self>
fn intersperse_with<G>(self, separator: G) -> IntersperseWith<Self, G>
fn aintersperse_with<G, F>(self, separator: G) -> AsyncIntersperseWith<Self, G>
fn cycle(self) -> Cycle<Self>
fn take(self, n: usize) -> Take<Self>where
Self: Sized,
fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>
Source§fn atake_while<P, F>(self, predicate: P) -> AsyncTakeWhile<Self, P>
fn atake_while<P, F>(self, predicate: P) -> AsyncTakeWhile<Self, P>
Note: Read more
fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F>
Source§fn ascan<St, B, F, O>(self, initial_state: St, f: F) -> AsyncScan<Self, St, F>
fn ascan<St, B, F, O>(self, initial_state: St, f: F) -> AsyncScan<Self, St, F>
Note: Read more
fn find<P>(&mut self, predicate: P) -> impl Future<Output = Option<Self::Item>>
fn afind<P, F>( &mut self, predicate: P, ) -> impl Future<Output = Option<Self::Item>>
fn find_map<P, B>(&mut self, operation: P) -> impl Future<Output = Option<B>>
fn afind_map<P, F, B>( &mut self, operation: P, ) -> impl Future<Output = Option<B>>
fn collect<B>(self) -> impl Future<Output = B>
fn fold<B>(
self,
init: B,
f: impl FnMut(B, Self::Item) -> B,
) -> impl Future<Output = B>where
Self: Sized,
fn afold<B, F>( self, init: B, f: impl FnMut(B, Self::Item) -> F, ) -> impl Future<Output = B>
fn for_each(self, f: impl FnMut(Self::Item)) -> impl Future<Output = ()>where
Self: Sized,
fn afor_each<F>( self, f: impl FnMut(Self::Item) -> F, ) -> impl Future<Output = ()>
fn reduce(
self,
f: impl FnMut(Self::Item, Self::Item) -> Self::Item,
) -> impl Future<Output = Option<Self::Item>>where
Self: Sized,
fn areduce<F>( self, f: impl FnMut(Self::Item, Self::Item) -> F, ) -> impl Future<Output = Option<Self::Item>>
fn count(self) -> impl Future<Output = usize>where
Self: Sized,
fn all(self, f: impl FnMut(Self::Item) -> bool) -> impl Future<Output = bool>where
Self: Sized,
fn aall<F>(self, f: impl FnMut(Self::Item) -> F) -> impl Future<Output = bool>
fn any(self, f: impl FnMut(Self::Item) -> bool) -> impl Future<Output = bool>where
Self: Sized,
fn aany<F>(self, f: impl FnMut(Self::Item) -> F) -> impl Future<Output = bool>
Auto Trait Implementations§
impl<I, F> Freeze for Map<I, F>
impl<I, F> RefUnwindSafe for Map<I, F>where
I: RefUnwindSafe,
F: RefUnwindSafe,
impl<I, F> Send for Map<I, F>
impl<I, F> Sync for Map<I, F>
impl<I, F> Unpin for Map<I, F>
impl<I, F> UnwindSafe for Map<I, F>where
I: 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