pub struct LazyCopied<I> { /* private fields */ }Trait Implementations§
Source§impl<I: Clone> Clone for LazyCopied<I>
impl<I: Clone> Clone for LazyCopied<I>
Source§fn clone(&self) -> LazyCopied<I>
fn clone(&self) -> LazyCopied<I>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a, I, T> Consumer for LazyCopied<I>
impl<'a, I, T> Consumer for LazyCopied<I>
Source§impl<I: Debug> Debug for LazyCopied<I>
impl<I: Debug> Debug for LazyCopied<I>
Source§impl<'a, I, T> Iterable for LazyCopied<I>
impl<'a, I, T> Iterable for LazyCopied<I>
type C = <I as Iterable>::CC<T>
type CC<U> = <I as Iterable>::CC<U>
type F = <I as Iterable>::CF<T>
type CF<U> = <I as Iterable>::CF<U>
fn count(self) -> usizewhere
Self: Sized,
fn last(self) -> Option<Self::Item>where
Self: Sized,
fn nth(self, n: usize) -> Option<Self::Item>where
Self: Sized,
fn step_by(self, step: usize) -> Self::C
fn chain(self, other: impl Consumer<Item = Self::Item>) -> Self::C
fn zip<E>(self, other: impl Consumer<Item = E>) -> Self::CC<(Self::Item, E)>
fn map<U>(self, f: impl Fn(Self::Item) -> U) -> Self::CF<U>
fn foreach(self, f: impl Fn(Self::Item))where
Self: Sized,
fn filter(self, f: impl Fn(&Self::Item) -> bool) -> Self::C
fn filter_map<U>(self, f: impl Fn(Self::Item) -> Option<U>) -> Self::CC<U>
fn enumerate(self) -> Self::CF<(usize, Self::Item)>
fn skip_while(self, f: impl Fn(&Self::Item) -> bool) -> Self::C
fn take_while(self, f: impl Fn(&Self::Item) -> bool) -> Self::C
fn map_while<U>(self, f: impl Fn(Self::Item) -> Option<U>) -> Self::CC<U>
fn skip(self, n: usize) -> Self::C
fn take(self, n: usize) -> Self::C
fn scan<S>(self, state: S, f: impl Fn(S, Self::Item) -> S) -> Self::CC<S>
fn flat_map<U>(self, f: impl Fn(Self::Item) -> U) -> Self::CC<U::Item>
fn flatten(self) -> Self::CC<<Self::Item as Consumer>::Item>
fn by_ref(&self) -> &Self
fn partition(self, f: impl Fn(&Self::Item) -> bool) -> (Self::C, Self::C)
fn try_fold<S, R>(self, init: S, f: impl Fn(S, Self::Item) -> R) -> R::Map<S>
fn try_for_each<R>(self, f: impl Fn(Self::Item) -> R) -> R::Map<()>
fn fold<S>(self, init: S, f: impl Fn(S, Self::Item) -> S) -> Swhere
Self: Sized,
fn all(self, f: impl Fn(Self::Item) -> bool) -> boolwhere
Self: Sized,
fn any(self, f: impl Fn(Self::Item) -> bool) -> boolwhere
Self: Sized,
fn find(self, f: impl Fn(&Self::Item) -> bool) -> Option<Self::Item>where
Self: Sized,
fn find_map<B>(self, f: impl Fn(Self::Item) -> Option<B>) -> Option<B>where
Self: Sized,
fn position(self, f: impl Fn(Self::Item) -> bool) -> Option<usize>where
Self: Sized,
fn rposition(self, f: impl Fn(Self::Item) -> bool) -> Option<usize>
fn max(self) -> Option<Self::Item>
fn min(self) -> Option<Self::Item>
fn max_by_key<B>(self, f: impl Fn(&Self::Item) -> B) -> Option<Self::Item>
fn max_by(
self,
f: impl Fn(&Self::Item, &Self::Item) -> Ordering,
) -> Option<Self::Item>where
Self: Sized,
fn min_by_key<B>(self, f: impl Fn(&Self::Item) -> B) -> Option<Self::Item>
fn min_by(
self,
f: impl Fn(&Self::Item, &Self::Item) -> Ordering,
) -> Option<Self::Item>where
Self: Sized,
fn unzip<A, B>(self) -> (Self::CF<A>, Self::CF<B>)where
Self: Sized + Consumer<Item = (A, B)>,
Self::CF<A>: GrowableProducer<A>,
Self::CF<B>: GrowableProducer<B>,
fn copied<'a, T>(self) -> Self::CF<T>
fn cloned<'a, T>(self) -> Self::CF<T>
fn sum<S>(self) -> S
fn product<S>(self) -> S
fn cmp<I>(self, other: I) -> Ordering
fn partial_cmp<I>(self, other: I) -> Option<Ordering>
fn eq<I>(self, other: I) -> bool
fn ne<I>(self, other: I) -> bool
fn lt<I>(self, other: I) -> bool
fn le<I>(self, other: I) -> bool
fn gt<I>(self, other: I) -> bool
fn ge<I>(self, other: I) -> bool
fn join(self, sep: &str) -> String
fn add_one(self, a: Self::Item) -> Self::C
fn try_add_one<R>(self, r: R) -> R::Map<Self::C>
fn try_map<B, R, F>(self, f: F) -> R::Map<Self::CC<B>>
fn try_flat_map<B, R, F>(self, f: F) -> R::Map<Self::CC<B::Item>>
fn try_flatten( self, ) -> <Self::Item as TryExt>::Map<Self::CC<<<Self::Item as TryExt>::Output as Consumer>::Item>>
fn lazy_step_by(self, step: usize) -> LazyStepBy<Self>where
Self: Sized,
fn lazy_chain<C: Consumer>(self, c: C) -> LazyChain<Self, C>where
Self: Sized,
fn lazy_zip<C: Consumer>(self, c: C) -> LazyZip<Self, C>where
Self: Sized,
fn lazy_filter<F: Fn(&Self::Item) -> bool>(self, f: F) -> LazyFilter<Self, F>where
Self: Sized,
fn lazy_map<T, F: Fn(Self::Item) -> T>(self, f: F) -> LazyMap<Self, F>where
Self: Sized,
fn lazy_filter_map<T, F: Fn(Self::Item) -> Option<T>>(
self,
f: F,
) -> LazyFilterMap<Self, F>where
Self: Sized,
fn lazy_enumerate(self) -> LazyEnumerate<Self>where
Self: Sized,
fn lazy_skip_while<F: Fn(&Self::Item) -> bool>(
self,
f: F,
) -> LazySkipWhile<Self, F>where
Self: Sized,
fn lazy_map_while<T, F: Fn(Self::Item) -> Option<T>>(
self,
f: F,
) -> LazyMapWhile<Self, F>where
Self: Sized,
fn lazy_skip(self, n: usize) -> LazySkip<Self>where
Self: Sized,
fn lazy_take(self, n: usize) -> LazyTake<Self>where
Self: Sized,
fn lazy_scan<S, F: Fn(S, Self::Item) -> S>(
self,
state: S,
f: F,
) -> LazyScan<S, Self, F>where
Self: Sized,
fn lazy_flat_map<T: Consumer, F: Fn(Self::Item) -> T>(
self,
f: F,
) -> LazyFlatMap<Self, F>where
Self: Sized,
fn lazy_flatten(self) -> LazyFlatten<Self>
fn lazy_copied<'a, T>(self) -> LazyCopied<Self>
fn lazy_cloned<'a, T>(self) -> LazyCloned<Self>
fn lazy_cycle(self) -> LazyCycle<Self>
Auto Trait Implementations§
impl<I> Freeze for LazyCopied<I>where
I: Freeze,
impl<I> RefUnwindSafe for LazyCopied<I>where
I: RefUnwindSafe,
impl<I> Send for LazyCopied<I>where
I: Send,
impl<I> Sync for LazyCopied<I>where
I: Sync,
impl<I> Unpin for LazyCopied<I>where
I: Unpin,
impl<I> UnwindSafe for LazyCopied<I>where
I: 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