[−][src]Struct fallible_iterator::Cloned
An iterator which clones the elements of the underlying iterator.
Trait Implementations
impl<I: Clone> Clone for Cloned<I>
[src]
impl<I: Debug> Debug for Cloned<I>
[src]
impl<'a, T, I> DoubleEndedFallibleIterator for Cloned<I> where
I: DoubleEndedFallibleIterator<Item = &'a T>,
T: 'a + Clone,
[src]
I: DoubleEndedFallibleIterator<Item = &'a T>,
T: 'a + Clone,
fn next_back(&mut self) -> Result<Option<T>, I::Error>
[src]
fn try_rfold<B, E, F>(&mut self, init: B, f: F) -> Result<B, E> where
E: From<I::Error>,
F: FnMut(B, T) -> Result<B, E>,
[src]
E: From<I::Error>,
F: FnMut(B, T) -> Result<B, E>,
fn rfold<B, F>(self, init: B, f: F) -> Result<B, Self::Error> where
Self: Sized,
F: FnMut(B, Self::Item) -> Result<B, Self::Error>,
[src]
Self: Sized,
F: FnMut(B, Self::Item) -> Result<B, Self::Error>,
impl<'a, T, I> FallibleIterator for Cloned<I> where
I: FallibleIterator<Item = &'a T>,
T: 'a + Clone,
[src]
I: FallibleIterator<Item = &'a T>,
T: 'a + Clone,
type Item = T
The type being iterated over.
type Error = I::Error
The error type.
fn next(&mut self) -> Result<Option<T>, I::Error>
[src]
fn size_hint(&self) -> (usize, Option<usize>)
[src]
fn try_fold<B, E, F>(&mut self, init: B, f: F) -> Result<B, E> where
E: From<I::Error>,
F: FnMut(B, T) -> Result<B, E>,
[src]
E: From<I::Error>,
F: FnMut(B, T) -> Result<B, E>,
fn count(self) -> Result<usize, Self::Error> where
Self: Sized,
[src]
Self: Sized,
fn last(self) -> Result<Option<Self::Item>, Self::Error> where
Self: Sized,
[src]
Self: Sized,
fn nth(&mut self, n: usize) -> Result<Option<Self::Item>, Self::Error>
[src]
fn step_by(self, step: usize) -> StepBy<Self> where
Self: Sized,
[src]
Self: Sized,
fn chain<I>(self, it: I) -> Chain<Self, I> where
I: IntoFallibleIterator<Item = Self::Item, Error = Self::Error>,
Self: Sized,
[src]
I: IntoFallibleIterator<Item = Self::Item, Error = Self::Error>,
Self: Sized,
fn zip<I>(self, o: I) -> Zip<Self, I::IntoFallibleIter> where
Self: Sized,
I: IntoFallibleIterator<Error = Self::Error>,
[src]
Self: Sized,
I: IntoFallibleIterator<Error = Self::Error>,
fn map<F, B>(self, f: F) -> Map<Self, F> where
Self: Sized,
F: FnMut(Self::Item) -> Result<B, Self::Error>,
[src]
Self: Sized,
F: FnMut(Self::Item) -> Result<B, Self::Error>,
fn for_each<F>(self, f: F) -> Result<(), Self::Error> where
Self: Sized,
F: FnMut(Self::Item) -> Result<(), Self::Error>,
[src]
Self: Sized,
F: FnMut(Self::Item) -> Result<(), Self::Error>,
fn filter<F>(self, f: F) -> Filter<Self, F> where
Self: Sized,
F: FnMut(&Self::Item) -> Result<bool, Self::Error>,
[src]
Self: Sized,
F: FnMut(&Self::Item) -> Result<bool, Self::Error>,
fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F> where
Self: Sized,
F: FnMut(Self::Item) -> Result<Option<B>, Self::Error>,
[src]
Self: Sized,
F: FnMut(Self::Item) -> Result<Option<B>, Self::Error>,
fn enumerate(self) -> Enumerate<Self> where
Self: Sized,
[src]
Self: Sized,
fn peekable(self) -> Peekable<Self> where
Self: Sized,
[src]
Self: Sized,
fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P> where
Self: Sized,
P: FnMut(&Self::Item) -> Result<bool, Self::Error>,
[src]
Self: Sized,
P: FnMut(&Self::Item) -> Result<bool, Self::Error>,
fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P> where
Self: Sized,
P: FnMut(&Self::Item) -> Result<bool, Self::Error>,
[src]
Self: Sized,
P: FnMut(&Self::Item) -> Result<bool, Self::Error>,
fn skip(self, n: usize) -> Skip<Self> where
Self: Sized,
[src]
Self: Sized,
fn take(self, n: usize) -> Take<Self> where
Self: Sized,
[src]
Self: Sized,
fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F> where
Self: Sized,
F: FnMut(&mut St, Self::Item) -> Result<Option<B>, Self::Error>,
[src]
Self: Sized,
F: FnMut(&mut St, Self::Item) -> Result<Option<B>, Self::Error>,
fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F> where
Self: Sized,
U: IntoFallibleIterator<Error = Self::Error>,
F: FnMut(Self::Item) -> Result<U, Self::Error>,
[src]
Self: Sized,
U: IntoFallibleIterator<Error = Self::Error>,
F: FnMut(Self::Item) -> Result<U, Self::Error>,
fn flatten(self) -> Flatten<Self> where
Self: Sized,
Self::Item: IntoFallibleIterator<Error = Self::Error>,
[src]
Self: Sized,
Self::Item: IntoFallibleIterator<Error = Self::Error>,
fn fuse(self) -> Fuse<Self> where
Self: Sized,
[src]
Self: Sized,
fn inspect<F>(self, f: F) -> Inspect<Self, F> where
Self: Sized,
F: FnMut(&Self::Item) -> Result<(), Self::Error>,
[src]
Self: Sized,
F: FnMut(&Self::Item) -> Result<(), Self::Error>,
fn by_ref(&mut self) -> &mut Selfⓘ where
Self: Sized,
[src]
Self: Sized,
fn collect<T>(self) -> Result<T, Self::Error> where
T: FromFallibleIterator<Self::Item>,
Self: Sized,
[src]
T: FromFallibleIterator<Self::Item>,
Self: Sized,
fn partition<B, F>(self, f: F) -> Result<(B, B), Self::Error> where
Self: Sized,
B: Default + Extend<Self::Item>,
F: FnMut(&Self::Item) -> Result<bool, Self::Error>,
[src]
Self: Sized,
B: Default + Extend<Self::Item>,
F: FnMut(&Self::Item) -> Result<bool, Self::Error>,
fn fold<B, F>(self, init: B, f: F) -> Result<B, Self::Error> where
Self: Sized,
F: FnMut(B, Self::Item) -> Result<B, Self::Error>,
[src]
Self: Sized,
F: FnMut(B, Self::Item) -> Result<B, Self::Error>,
fn all<F>(&mut self, f: F) -> Result<bool, Self::Error> where
Self: Sized,
F: FnMut(Self::Item) -> Result<bool, Self::Error>,
[src]
Self: Sized,
F: FnMut(Self::Item) -> Result<bool, Self::Error>,
fn any<F>(&mut self, f: F) -> Result<bool, Self::Error> where
Self: Sized,
F: FnMut(Self::Item) -> Result<bool, Self::Error>,
[src]
Self: Sized,
F: FnMut(Self::Item) -> Result<bool, Self::Error>,
fn find<F>(&mut self, f: F) -> Result<Option<Self::Item>, Self::Error> where
Self: Sized,
F: FnMut(&Self::Item) -> Result<bool, Self::Error>,
[src]
Self: Sized,
F: FnMut(&Self::Item) -> Result<bool, Self::Error>,
fn find_map<B, F>(&mut self, f: F) -> Result<Option<B>, Self::Error> where
Self: Sized,
F: FnMut(Self::Item) -> Result<Option<B>, Self::Error>,
[src]
Self: Sized,
F: FnMut(Self::Item) -> Result<Option<B>, Self::Error>,
fn position<F>(&mut self, f: F) -> Result<Option<usize>, Self::Error> where
Self: Sized,
F: FnMut(Self::Item) -> Result<bool, Self::Error>,
[src]
Self: Sized,
F: FnMut(Self::Item) -> Result<bool, Self::Error>,
fn max(self) -> Result<Option<Self::Item>, Self::Error> where
Self: Sized,
Self::Item: Ord,
[src]
Self: Sized,
Self::Item: Ord,
fn max_by_key<B, F>(self, f: F) -> Result<Option<Self::Item>, Self::Error> where
Self: Sized,
B: Ord,
F: FnMut(&Self::Item) -> Result<B, Self::Error>,
[src]
Self: Sized,
B: Ord,
F: FnMut(&Self::Item) -> Result<B, Self::Error>,
fn max_by<F>(self, f: F) -> Result<Option<Self::Item>, Self::Error> where
Self: Sized,
F: FnMut(&Self::Item, &Self::Item) -> Result<Ordering, Self::Error>,
[src]
Self: Sized,
F: FnMut(&Self::Item, &Self::Item) -> Result<Ordering, Self::Error>,
fn min(self) -> Result<Option<Self::Item>, Self::Error> where
Self: Sized,
Self::Item: Ord,
[src]
Self: Sized,
Self::Item: Ord,
fn min_by_key<B, F>(self, f: F) -> Result<Option<Self::Item>, Self::Error> where
Self: Sized,
B: Ord,
F: FnMut(&Self::Item) -> Result<B, Self::Error>,
[src]
Self: Sized,
B: Ord,
F: FnMut(&Self::Item) -> Result<B, Self::Error>,
fn min_by<F>(self, f: F) -> Result<Option<Self::Item>, Self::Error> where
Self: Sized,
F: FnMut(&Self::Item, &Self::Item) -> Result<Ordering, Self::Error>,
[src]
Self: Sized,
F: FnMut(&Self::Item, &Self::Item) -> Result<Ordering, Self::Error>,
fn rev(self) -> Rev<Self> where
Self: Sized + DoubleEndedFallibleIterator,
[src]
Self: Sized + DoubleEndedFallibleIterator,
fn unzip<A, B, FromA, FromB>(self) -> Result<(FromA, FromB), Self::Error> where
Self: Sized + FallibleIterator<Item = (A, B)>,
FromA: Default + Extend<A>,
FromB: Default + Extend<B>,
[src]
Self: Sized + FallibleIterator<Item = (A, B)>,
FromA: Default + Extend<A>,
FromB: Default + Extend<B>,
fn cloned<'a, T>(self) -> Cloned<Self> where
Self: Sized + FallibleIterator<Item = &'a T>,
T: 'a + Clone,
[src]
Self: Sized + FallibleIterator<Item = &'a T>,
T: 'a + Clone,
fn cycle(self) -> Cycle<Self> where
Self: Sized + Clone,
[src]
Self: Sized + Clone,
fn cmp<I>(self, other: I) -> Result<Ordering, Self::Error> where
Self: Sized,
I: IntoFallibleIterator<Item = Self::Item, Error = Self::Error>,
Self::Item: Ord,
[src]
Self: Sized,
I: IntoFallibleIterator<Item = Self::Item, Error = Self::Error>,
Self::Item: Ord,
fn partial_cmp<I>(self, other: I) -> Result<Option<Ordering>, Self::Error> where
Self: Sized,
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialOrd<I::Item>,
[src]
Self: Sized,
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialOrd<I::Item>,
fn eq<I>(self, other: I) -> Result<bool, Self::Error> where
Self: Sized,
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialEq<I::Item>,
[src]
Self: Sized,
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialEq<I::Item>,
fn ne<I>(self, other: I) -> Result<bool, Self::Error> where
Self: Sized,
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialEq<I::Item>,
[src]
Self: Sized,
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialEq<I::Item>,
fn lt<I>(self, other: I) -> Result<bool, Self::Error> where
Self: Sized,
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialOrd<I::Item>,
[src]
Self: Sized,
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialOrd<I::Item>,
fn le<I>(self, other: I) -> Result<bool, Self::Error> where
Self: Sized,
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialOrd<I::Item>,
[src]
Self: Sized,
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialOrd<I::Item>,
fn gt<I>(self, other: I) -> Result<bool, Self::Error> where
Self: Sized,
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialOrd<I::Item>,
[src]
Self: Sized,
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialOrd<I::Item>,
fn ge<I>(self, other: I) -> Result<bool, Self::Error> where
Self: Sized,
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialOrd<I::Item>,
[src]
Self: Sized,
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialOrd<I::Item>,
fn iterator(self) -> Iterator<Self>ⓘ where
Self: Sized,
[src]
Self: Sized,
fn map_err<B, F>(self, f: F) -> MapErr<Self, F> where
F: FnMut(Self::Error) -> B,
Self: Sized,
[src]
F: FnMut(Self::Error) -> B,
Self: Sized,
Auto Trait Implementations
impl<I> RefUnwindSafe for Cloned<I> where
I: RefUnwindSafe,
I: RefUnwindSafe,
impl<I> Send for Cloned<I> where
I: Send,
I: Send,
impl<I> Sync for Cloned<I> where
I: Sync,
I: Sync,
impl<I> Unpin for Cloned<I> where
I: Unpin,
I: Unpin,
impl<I> UnwindSafe for Cloned<I> where
I: UnwindSafe,
I: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoFallibleIterator for I where
I: FallibleIterator,
[src]
I: FallibleIterator,
type Item = <I as FallibleIterator>::Item
The elements of the iterator.
type Error = <I as FallibleIterator>::Error
The error value of the iterator.
type IntoFallibleIter = I
The iterator.
fn into_fallible_iter(Self) -> I
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,