pub struct FalliblePeekable<'this, L>where
L: FallibleLender,{ /* private fields */ }Expand description
A fallible lender with a peek() method
that returns an optional reference to the next element.
This struct is created by the
peekable() method on
FallibleLender. See its documentation for more.
Implementations§
Source§impl<'this, L> Peekable<'this, L>where
L: FallibleLender,
impl<'this, L> Peekable<'this, L>where
L: FallibleLender,
Sourcepub fn into_inner(self) -> L
pub fn into_inner(self) -> L
Returns the inner lender.
Sourcepub fn peek(&mut self) -> Result<Option<&FallibleLend<'_, L>>, L::Error>
pub fn peek(&mut self) -> Result<Option<&FallibleLend<'_, L>>, L::Error>
Returns a reference to the next element without advancing the lender.
Like next, if there is a
next value, it is borrowed from the underlying lender
and cached. Calling peek() multiple times without
advancing the lender returns the same cached element.
§Errors
Returns an error if the underlying lender produces an error.
§Examples
let mut lender = [1, 2, 3].iter().into_lender()
.into_fallible()
.peekable();
assert_eq!(lender.peek()?, Some(&&1));
assert_eq!(lender.peek()?, Some(&&1)); // Doesn't advance
assert_eq!(lender.next()?, Some(&1));
assert_eq!(lender.peek()?, Some(&&2));Sourcepub fn peek_mut(
&mut self,
) -> Result<Option<&mut FallibleLend<'this, L>>, L::Error>
pub fn peek_mut( &mut self, ) -> Result<Option<&mut FallibleLend<'this, L>>, L::Error>
Returns a mutable reference to the next element without advancing the lender.
Like peek, if there is a next value, it is borrowed from the
underlying lender and cached. The returned mutable reference allows modifying
the peeked value.
§Errors
Returns an error if the underlying lender produces an error.
§Examples
let mut lender = [1, 2, 3].iter().into_lender()
.into_fallible()
.peekable();
if let Some(p) = lender.peek_mut()? {
// p is &mut &i32, so we replace the reference
*p = &10;
}
assert_eq!(lender.next()?, Some(&10));
assert_eq!(lender.next()?, Some(&2));Sourcepub fn next_if<F>(
&mut self,
f: F,
) -> Result<Option<FallibleLend<'_, L>>, L::Error>
pub fn next_if<F>( &mut self, f: F, ) -> Result<Option<FallibleLend<'_, L>>, L::Error>
Consumes and returns the next element if the given predicate is true.
If f(&next_element) returns true, consumes and returns the next element.
Otherwise, returns Ok(None) and the element remains peeked.
§Errors
Returns an error if the underlying lender produces an error.
§Examples
let mut lender = [1, 2, 3].iter().into_lender()
.into_fallible()
.peekable();
// Consume 1 since it's odd
assert_eq!(lender.next_if(|&x| *x % 2 == 1)?, Some(&1));
// Don't consume 2 since it's not odd
assert_eq!(lender.next_if(|&x| *x % 2 == 1)?, None);
// 2 is still there
assert_eq!(lender.next()?, Some(&2));Sourcepub fn next_if_eq<'a, T>(
&'a mut self,
t: &T,
) -> Result<Option<FallibleLend<'a, L>>, L::Error>where
T: for<'all> PartialEq<FallibleLend<'all, L>>,
pub fn next_if_eq<'a, T>(
&'a mut self,
t: &T,
) -> Result<Option<FallibleLend<'a, L>>, L::Error>where
T: for<'all> PartialEq<FallibleLend<'all, L>>,
Consumes and returns the next element if it equals the given value.
If the next element equals t, consumes and returns it. Otherwise,
returns Ok(None) and the element remains peeked.
§Errors
Returns an error if the underlying lender produces an error.
§Examples
let mut lender = [1, 2, 3].iter().into_lender()
.into_fallible()
.peekable();
// Consume 1 since it equals 1
assert_eq!(lender.next_if_eq(&&1)?, Some(&1));
// Don't consume 2 since it doesn't equal 1
assert_eq!(lender.next_if_eq(&&1)?, None);
// 2 is still there
assert_eq!(lender.next()?, Some(&2));Trait Implementations§
Source§impl<'this, L: DoubleEndedFallibleLender> DoubleEndedFallibleLender for Peekable<'this, L>
impl<'this, L: DoubleEndedFallibleLender> DoubleEndedFallibleLender for Peekable<'this, L>
Source§fn next_back(&mut self) -> Result<Option<FallibleLend<'_, Self>>, Self::Error>
fn next_back(&mut self) -> Result<Option<FallibleLend<'_, Self>>, Self::Error>
Source§fn try_rfold<B, F, R>(&mut self, init: B, f: F) -> Result<R, Self::Error>
fn try_rfold<B, F, R>(&mut self, init: B, f: F) -> Result<R, Self::Error>
FallibleLender::try_fold: it takes elements
starting from the back of the lender. Read moreSource§fn rfold<B, F>(self, init: B, f: F) -> Result<B, Self::Error>
fn rfold<B, F>(self, init: B, f: F) -> Result<B, Self::Error>
FallibleLender::fold: it takes elements
starting from the back of the lender. Read moreSource§fn advance_back_by(
&mut self,
n: usize,
) -> Result<Result<(), NonZeroUsize>, Self::Error>
fn advance_back_by( &mut self, n: usize, ) -> Result<Result<(), NonZeroUsize>, Self::Error>
n elements. Read moreSource§fn nth_back(
&mut self,
n: usize,
) -> Result<Option<FallibleLend<'_, Self>>, Self::Error>
fn nth_back( &mut self, n: usize, ) -> Result<Option<FallibleLend<'_, Self>>, Self::Error>
nth element from the end of the lender. Read moreSource§fn rfind<P>(
&mut self,
predicate: P,
) -> Result<Option<FallibleLend<'_, Self>>, Self::Error>
fn rfind<P>( &mut self, predicate: P, ) -> Result<Option<FallibleLend<'_, Self>>, Self::Error>
FallibleLender::find: it searches for an element
from the back that satisfies the predicate. Read moreSource§impl<'this, L> ExactSizeFallibleLender for Peekable<'this, L>where
L: ExactSizeFallibleLender,
impl<'this, L> ExactSizeFallibleLender for Peekable<'this, L>where
L: ExactSizeFallibleLender,
Source§impl<'this, L> FallibleLender for Peekable<'this, L>where
L: FallibleLender,
impl<'this, L> FallibleLender for Peekable<'this, L>where
L: FallibleLender,
Source§type Error = <L as FallibleLender>::Error
type Error = <L as FallibleLender>::Error
Source§fn __check_covariance<'long: 'short, 'short>(
proof: CovariantProof<&'short <Self as FallibleLending<'long>>::Lend>,
) -> CovariantProof<&'short <Self as FallibleLending<'short>>::Lend>
fn __check_covariance<'long: 'short, 'short>( proof: CovariantProof<&'short <Self as FallibleLending<'long>>::Lend>, ) -> CovariantProof<&'short <Self as FallibleLending<'short>>::Lend>
Source§fn next(&mut self) -> Result<Option<FallibleLend<'_, Self>>, Self::Error>
fn next(&mut self) -> Result<Option<FallibleLend<'_, Self>>, Self::Error>
Ok(None) when iteration
is finished. Read moreSource§fn count(self) -> Result<usize, Self::Error>
fn count(self) -> Result<usize, Self::Error>
Ok(None) or Err(_). Read moreSource§fn nth(
&mut self,
n: usize,
) -> Result<Option<FallibleLend<'_, Self>>, Self::Error>
fn nth( &mut self, n: usize, ) -> Result<Option<FallibleLend<'_, Self>>, Self::Error>
Ok(None). Read moreSource§fn last<'a>(&'a mut self) -> Result<Option<FallibleLend<'a, Self>>, Self::Error>where
Self: Sized,
fn last<'a>(&'a mut self) -> Result<Option<FallibleLend<'a, Self>>, Self::Error>where
Self: Sized,
Source§fn next_chunk(&mut self, chunk_size: usize) -> Chunk<'_, Self>where
Self: Sized,
fn next_chunk(&mut self, chunk_size: usize) -> Chunk<'_, Self>where
Self: Sized,
chunk_size lends of the lender with temporary lender
Chunk. This is equivalent to cloning the lender and calling
take(chunk_size) on it. Read moreSource§fn advance_by(
&mut self,
n: usize,
) -> Result<Result<(), NonZeroUsize>, Self::Error>
fn advance_by( &mut self, n: usize, ) -> Result<Result<(), NonZeroUsize>, Self::Error>
n lends. Read moreSource§fn step_by(self, step: usize) -> StepBy<Self>where
Self: Sized,
fn step_by(self, step: usize) -> StepBy<Self>where
Self: Sized,
step - 1 lends between each lend of the lender. Read moreSource§fn chain<U>(
self,
other: U,
) -> Chain<Self, <U as IntoFallibleLender>::FallibleLender>where
Self: Sized,
U: IntoFallibleLender<Error = Self::Error> + for<'all> FallibleLending<'all, Lend = FallibleLend<'all, Self>>,
fn chain<U>(
self,
other: U,
) -> Chain<Self, <U as IntoFallibleLender>::FallibleLender>where
Self: Sized,
U: IntoFallibleLender<Error = Self::Error> + for<'all> FallibleLending<'all, Lend = FallibleLend<'all, Self>>,
Source§fn zip<U: IntoFallibleLender>(
self,
other: U,
) -> Zip<Self, <U as IntoFallibleLender>::FallibleLender>where
Self: Sized,
fn zip<U: IntoFallibleLender>(
self,
other: U,
) -> Zip<Self, <U as IntoFallibleLender>::FallibleLender>where
Self: Sized,
Source§fn intersperse<'call>(
self,
separator: FallibleLend<'call, Self>,
) -> FallibleIntersperse<'call, Self>
fn intersperse<'call>( self, separator: FallibleLend<'call, Self>, ) -> FallibleIntersperse<'call, Self>
Source§fn intersperse_with<'call, G>(
self,
separator: G,
) -> FallibleIntersperseWith<'call, Self, G>
fn intersperse_with<'call, G>( self, separator: G, ) -> FallibleIntersperseWith<'call, Self, G>
Source§fn map<F>(self, f: Covar<F>) -> Map<Self, F>
fn map<F>(self, f: Covar<F>) -> Map<Self, F>
Source§fn map_err<E, F>(self, f: F) -> MapErr<E, Self, F>
fn map_err<E, F>(self, f: F) -> MapErr<E, Self, F>
Source§fn map_into_iter<O, F>(self, f: F) -> MapIntoIter<Self, O, F> ⓘ
fn map_into_iter<O, F>(self, f: F) -> MapIntoIter<Self, O, F> ⓘ
Source§fn for_each<F>(self, f: F) -> Result<(), Self::Error>
fn for_each<F>(self, f: F) -> Result<(), Self::Error>
Source§fn filter<P>(self, predicate: P) -> Filter<Self, P>
fn filter<P>(self, predicate: P) -> Filter<Self, P>
Source§fn filter_map<F>(self, f: Covar<F>) -> FilterMap<Self, F>
fn filter_map<F>(self, f: Covar<F>) -> FilterMap<Self, F>
Source§fn enumerate(self) -> Enumerate<Self>where
Self: Sized,
fn enumerate(self) -> Enumerate<Self>where
Self: Sized,
Source§fn peekable<'call>(self) -> FalliblePeekable<'call, Self>where
Self: Sized,
fn peekable<'call>(self) -> FalliblePeekable<'call, Self>where
Self: Sized,
Source§fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P>
fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P>
Source§fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>
fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>
Source§fn skip(self, n: usize) -> Skip<Self>where
Self: Sized,
fn skip(self, n: usize) -> Skip<Self>where
Self: Sized,
n lends of this lender. Read moreSource§fn take(self, n: usize) -> Take<Self>where
Self: Sized,
fn take(self, n: usize) -> Take<Self>where
Self: Sized,
n lends of this lender. Read moreSource§fn scan<St, F>(self, initial_state: St, f: Covar<F>) -> Scan<Self, St, F>where
Self: Sized,
F: for<'all> FnMutHKAResOpt<'all, (&'all mut St, FallibleLend<'all, Self>), Self::Error>,
fn scan<St, F>(self, initial_state: St, f: Covar<F>) -> Scan<Self, St, F>where
Self: Sized,
F: for<'all> FnMutHKAResOpt<'all, (&'all mut St, FallibleLend<'all, Self>), Self::Error>,
Source§fn flat_map<'call, F>(self, f: Covar<F>) -> FallibleFlatMap<'call, Self, F>where
Self: Sized,
F: for<'all> FnMutHKARes<'all, FallibleLend<'all, Self>, Self::Error>,
for<'all> <F as FnMutHKARes<'all, FallibleLend<'all, Self>, Self::Error>>::B: IntoFallibleLender<Error = Self::Error>,
fn flat_map<'call, F>(self, f: Covar<F>) -> FallibleFlatMap<'call, Self, F>where
Self: Sized,
F: for<'all> FnMutHKARes<'all, FallibleLend<'all, Self>, Self::Error>,
for<'all> <F as FnMutHKARes<'all, FallibleLend<'all, Self>, Self::Error>>::B: IntoFallibleLender<Error = Self::Error>,
Source§fn flatten<'call>(self) -> FallibleFlatten<'call, Self>
fn flatten<'call>(self) -> FallibleFlatten<'call, Self>
Source§fn mutate<F>(self, f: F) -> Mutate<Self, F>
fn mutate<F>(self, f: F) -> Mutate<Self, F>
Source§fn collect<B>(self) -> Result<B, (B, Self::Error)>where
Self: Sized,
for<'all> B: FromLender<NonFallibleAdapter<'all, Self>>,
fn collect<B>(self) -> Result<B, (B, Self::Error)>where
Self: Sized,
for<'all> B: FromLender<NonFallibleAdapter<'all, Self>>,
Source§fn try_collect<'a, B, T>(&'a mut self) -> Result<T, (T, Self::Error)>where
Self: Sized,
for<'all> FallibleLend<'all, Self>: Try,
for<'all> <FallibleLend<'all, Self> as Try>::Residual: Residual<B, TryType = T>,
for<'b, 'c, 'd> B: FromLender<FallibleTryShuntAdapter<'b, 'c, 'd, 'a, Self>>,
fn try_collect<'a, B, T>(&'a mut self) -> Result<T, (T, Self::Error)>where
Self: Sized,
for<'all> FallibleLend<'all, Self>: Try,
for<'all> <FallibleLend<'all, Self> as Try>::Residual: Residual<B, TryType = T>,
for<'b, 'c, 'd> B: FromLender<FallibleTryShuntAdapter<'b, 'c, 'd, 'a, Self>>,
Source§fn collect_into<E>(
self,
collection: &mut E,
) -> Result<&mut E, (&mut E, Self::Error)>where
Self: Sized,
for<'all> E: ExtendLender<NonFallibleAdapter<'all, Self>>,
fn collect_into<E>(
self,
collection: &mut E,
) -> Result<&mut E, (&mut E, Self::Error)>where
Self: Sized,
for<'all> E: ExtendLender<NonFallibleAdapter<'all, Self>>,
Source§fn partition<'this, E, F>(self, f: F) -> Result<(E, E), ((E, E), Self::Error)>where
Self: Sized + 'this,
E: Default + ExtendLender<NonFallibleAdapter<'this, Self>>,
F: FnMut(&FallibleLend<'_, Self>) -> Result<bool, Self::Error>,
fn partition<'this, E, F>(self, f: F) -> Result<(E, E), ((E, E), Self::Error)>where
Self: Sized + 'this,
E: Default + ExtendLender<NonFallibleAdapter<'this, Self>>,
F: FnMut(&FallibleLend<'_, Self>) -> Result<bool, Self::Error>,
Source§fn try_for_each<F, R>(&mut self, f: F) -> Result<R, Self::Error>
fn try_for_each<F, R>(&mut self, f: F) -> Result<R, Self::Error>
Source§fn reduce<T, F>(self, f: F) -> Result<Option<T>, Self::Error>where
Self: Sized,
for<'all> FallibleLend<'all, Self>: ToOwned<Owned = T>,
F: FnMut(T, FallibleLend<'_, Self>) -> Result<T, Self::Error>,
fn reduce<T, F>(self, f: F) -> Result<Option<T>, Self::Error>where
Self: Sized,
for<'all> FallibleLend<'all, Self>: ToOwned<Owned = T>,
F: FnMut(T, FallibleLend<'_, Self>) -> Result<T, Self::Error>,
Source§fn try_reduce<T, F, R>(
self,
f: F,
) -> Result<ChangeOutputType<R, Option<T>>, Self::Error>
fn try_reduce<T, F, R>( self, f: F, ) -> Result<ChangeOutputType<R, Option<T>>, Self::Error>
Source§fn find<P>(
&mut self,
predicate: P,
) -> Result<Option<FallibleLend<'_, Self>>, Self::Error>
fn find<P>( &mut self, predicate: P, ) -> Result<Option<FallibleLend<'_, Self>>, Self::Error>
Source§fn find_map<'a, F>(
&'a mut self,
f: F,
) -> Result<Option<<F as FnMutHKAResOpt<'a, FallibleLend<'a, Self>, Self::Error>>::B>, Self::Error>
fn find_map<'a, F>( &'a mut self, f: F, ) -> Result<Option<<F as FnMutHKAResOpt<'a, FallibleLend<'a, Self>, Self::Error>>::B>, Self::Error>
Source§fn try_find<F, R>(
&mut self,
f: F,
) -> Result<ChangeOutputType<R, Option<FallibleLend<'_, Self>>>, Self::Error>
fn try_find<F, R>( &mut self, f: F, ) -> Result<ChangeOutputType<R, Option<FallibleLend<'_, Self>>>, Self::Error>
Source§fn rposition<P>(&mut self, predicate: P) -> Result<Option<usize>, Self::Error>where
P: FnMut(FallibleLend<'_, Self>) -> Result<bool, Self::Error>,
Self: Sized + ExactSizeFallibleLender + DoubleEndedFallibleLender,
fn rposition<P>(&mut self, predicate: P) -> Result<Option<usize>, Self::Error>where
P: FnMut(FallibleLend<'_, Self>) -> Result<bool, Self::Error>,
Self: Sized + ExactSizeFallibleLender + DoubleEndedFallibleLender,
Source§fn max_by<T, F>(self, compare: F) -> Result<Option<T>, Self::Error>where
Self: Sized,
for<'all> FallibleLend<'all, Self>: ToOwned<Owned = T>,
F: FnMut(&T, &FallibleLend<'_, Self>) -> Result<Ordering, Self::Error>,
fn max_by<T, F>(self, compare: F) -> Result<Option<T>, Self::Error>where
Self: Sized,
for<'all> FallibleLend<'all, Self>: ToOwned<Owned = T>,
F: FnMut(&T, &FallibleLend<'_, Self>) -> Result<Ordering, Self::Error>,
Source§fn min_by<T, F>(self, compare: F) -> Result<Option<T>, Self::Error>where
Self: Sized,
for<'all> FallibleLend<'all, Self>: ToOwned<Owned = T>,
F: FnMut(&T, &FallibleLend<'_, Self>) -> Result<Ordering, Self::Error>,
fn min_by<T, F>(self, compare: F) -> Result<Option<T>, Self::Error>where
Self: Sized,
for<'all> FallibleLend<'all, Self>: ToOwned<Owned = T>,
F: FnMut(&T, &FallibleLend<'_, Self>) -> Result<Ordering, Self::Error>,
Source§fn unzip<ExtA, ExtB>(self) -> Result<(ExtA, ExtB), Self::Error>where
Self: Sized,
for<'all> FallibleLend<'all, Self>: TupleLend<'all>,
ExtA: Default + for<'this> ExtendLender<NonFallibleAdapter<'this, <FirstShunt<Self> as IntoFallibleLender>::FallibleLender>>,
ExtB: Default + for<'this> ExtendLender<NonFallibleAdapter<'this, <SecondShunt<Self> as IntoFallibleLender>::FallibleLender>>,
fn unzip<ExtA, ExtB>(self) -> Result<(ExtA, ExtB), Self::Error>where
Self: Sized,
for<'all> FallibleLend<'all, Self>: TupleLend<'all>,
ExtA: Default + for<'this> ExtendLender<NonFallibleAdapter<'this, <FirstShunt<Self> as IntoFallibleLender>::FallibleLender>>,
ExtB: Default + for<'this> ExtendLender<NonFallibleAdapter<'this, <SecondShunt<Self> as IntoFallibleLender>::FallibleLender>>,
FallibleLender version of Iterator::unzip.Source§fn product<P>(self) -> Result<P, Self::Error>where
Self: Sized,
P: ProductFallibleLender<Self>,
fn product<P>(self) -> Result<P, Self::Error>where
Self: Sized,
P: ProductFallibleLender<Self>,
Source§fn cmp<L>(self, other: L) -> Result<Ordering, Self::Error>where
L: IntoFallibleLender<Error = Self::Error>,
L::FallibleLender: for<'all> FallibleLending<'all, Lend = FallibleLend<'all, Self>>,
for<'all> FallibleLend<'all, Self>: Ord,
Self: Sized,
fn cmp<L>(self, other: L) -> Result<Ordering, Self::Error>where
L: IntoFallibleLender<Error = Self::Error>,
L::FallibleLender: for<'all> FallibleLending<'all, Lend = FallibleLend<'all, Self>>,
for<'all> FallibleLend<'all, Self>: Ord,
Self: Sized,
Source§fn cmp_by<L, F>(self, other: L, cmp: F) -> Result<Ordering, Self::Error>where
Self: Sized,
L: IntoFallibleLender<Error = Self::Error>,
F: for<'all> FnMut(FallibleLend<'all, Self>, FallibleLend<'all, L::FallibleLender>) -> Result<Ordering, Self::Error>,
fn cmp_by<L, F>(self, other: L, cmp: F) -> Result<Ordering, Self::Error>where
Self: Sized,
L: IntoFallibleLender<Error = Self::Error>,
F: for<'all> FnMut(FallibleLend<'all, Self>, FallibleLend<'all, L::FallibleLender>) -> Result<Ordering, Self::Error>,
Source§fn partial_cmp<L>(self, other: L) -> Result<Option<Ordering>, Self::Error>where
L: IntoFallibleLender<Error = Self::Error>,
for<'all> FallibleLend<'all, Self>: PartialOrd<FallibleLend<'all, L::FallibleLender>>,
Self: Sized,
fn partial_cmp<L>(self, other: L) -> Result<Option<Ordering>, Self::Error>where
L: IntoFallibleLender<Error = Self::Error>,
for<'all> FallibleLend<'all, Self>: PartialOrd<FallibleLend<'all, L::FallibleLender>>,
Self: Sized,
Source§fn partial_cmp_by<L, F>(
self,
other: L,
partial_cmp: F,
) -> Result<Option<Ordering>, Self::Error>where
Self: Sized,
L: IntoFallibleLender<Error = Self::Error>,
F: for<'all> FnMut(FallibleLend<'all, Self>, FallibleLend<'all, L::FallibleLender>) -> Result<Option<Ordering>, Self::Error>,
fn partial_cmp_by<L, F>(
self,
other: L,
partial_cmp: F,
) -> Result<Option<Ordering>, Self::Error>where
Self: Sized,
L: IntoFallibleLender<Error = Self::Error>,
F: for<'all> FnMut(FallibleLend<'all, Self>, FallibleLend<'all, L::FallibleLender>) -> Result<Option<Ordering>, Self::Error>,
Source§fn eq<L>(self, other: L) -> Result<bool, Self::Error>where
L: IntoFallibleLender<Error = Self::Error>,
for<'all> FallibleLend<'all, Self>: PartialEq<FallibleLend<'all, L::FallibleLender>>,
Self: Sized,
fn eq<L>(self, other: L) -> Result<bool, Self::Error>where
L: IntoFallibleLender<Error = Self::Error>,
for<'all> FallibleLend<'all, Self>: PartialEq<FallibleLend<'all, L::FallibleLender>>,
Self: Sized,
Source§fn eq_by<L, F>(self, other: L, eq: F) -> Result<bool, Self::Error>where
Self: Sized,
L: IntoFallibleLender<Error = Self::Error>,
F: for<'all> FnMut(FallibleLend<'all, Self>, FallibleLend<'all, L::FallibleLender>) -> Result<bool, Self::Error>,
fn eq_by<L, F>(self, other: L, eq: F) -> Result<bool, Self::Error>where
Self: Sized,
L: IntoFallibleLender<Error = Self::Error>,
F: for<'all> FnMut(FallibleLend<'all, Self>, FallibleLend<'all, L::FallibleLender>) -> Result<bool, Self::Error>,
Source§fn ne<L>(self, other: L) -> Result<bool, Self::Error>where
L: IntoFallibleLender<Error = Self::Error>,
for<'all> FallibleLend<'all, Self>: PartialEq<FallibleLend<'all, L::FallibleLender>>,
Self: Sized,
fn ne<L>(self, other: L) -> Result<bool, Self::Error>where
L: IntoFallibleLender<Error = Self::Error>,
for<'all> FallibleLend<'all, Self>: PartialEq<FallibleLend<'all, L::FallibleLender>>,
Self: Sized,
Source§fn lt<L>(self, other: L) -> Result<bool, Self::Error>where
L: IntoFallibleLender<Error = Self::Error>,
for<'all> FallibleLend<'all, Self>: PartialOrd<FallibleLend<'all, L::FallibleLender>>,
Self: Sized,
fn lt<L>(self, other: L) -> Result<bool, Self::Error>where
L: IntoFallibleLender<Error = Self::Error>,
for<'all> FallibleLend<'all, Self>: PartialOrd<FallibleLend<'all, L::FallibleLender>>,
Self: Sized,
Source§fn le<L>(self, other: L) -> Result<bool, Self::Error>where
L: IntoFallibleLender<Error = Self::Error>,
for<'all> FallibleLend<'all, Self>: PartialOrd<FallibleLend<'all, L::FallibleLender>>,
Self: Sized,
fn le<L>(self, other: L) -> Result<bool, Self::Error>where
L: IntoFallibleLender<Error = Self::Error>,
for<'all> FallibleLend<'all, Self>: PartialOrd<FallibleLend<'all, L::FallibleLender>>,
Self: Sized,
Source§fn gt<L>(self, other: L) -> Result<bool, Self::Error>where
L: IntoFallibleLender<Error = Self::Error>,
for<'all> FallibleLend<'all, Self>: PartialOrd<FallibleLend<'all, L::FallibleLender>>,
Self: Sized,
fn gt<L>(self, other: L) -> Result<bool, Self::Error>where
L: IntoFallibleLender<Error = Self::Error>,
for<'all> FallibleLend<'all, Self>: PartialOrd<FallibleLend<'all, L::FallibleLender>>,
Self: Sized,
Source§fn ge<L>(self, other: L) -> Result<bool, Self::Error>where
L: IntoFallibleLender<Error = Self::Error>,
for<'all> FallibleLend<'all, Self>: PartialOrd<FallibleLend<'all, L::FallibleLender>>,
Self: Sized,
fn ge<L>(self, other: L) -> Result<bool, Self::Error>where
L: IntoFallibleLender<Error = Self::Error>,
for<'all> FallibleLend<'all, Self>: PartialOrd<FallibleLend<'all, L::FallibleLender>>,
Self: Sized,
Source§fn chunky(self, chunk_size: usize) -> Chunky<Self>where
Self: Sized + ExactSizeFallibleLender,
fn chunky(self, chunk_size: usize) -> Chunky<Self>where
Self: Sized + ExactSizeFallibleLender,
Iterator::array_chunks. Read moreSource§fn iter<'this>(self) -> Iter<'this, Self> ⓘwhere
Self: Sized + 'this,
for<'all> FallibleLend<'all, Self>: 'this,
fn iter<'this>(self) -> Iter<'this, Self> ⓘwhere
Self: Sized + 'this,
for<'all> FallibleLend<'all, Self>: 'this,
FallibleLender into a
FallibleIterator where it has
already fulfilled the requirements of the
FallibleIterator trait. Read moreSource§fn lender_by_ref<'this>(self) -> FromFallibleIterRef<Iter<'this, Self>>where
Self: Sized + 'this,
for<'all> FallibleLend<'all, Self>: 'this,
fn lender_by_ref<'this>(self) -> FromFallibleIterRef<Iter<'this, Self>>where
Self: Sized + 'this,
for<'all> FallibleLend<'all, Self>: 'this,
FallibleLender into a new
FallibleLender that lends references to the items
of the original lender. Read moreSource§impl<'lend, L> FallibleLending<'lend> for Peekable<'_, L>where
L: FallibleLender,
impl<'lend, L> FallibleLending<'lend> for Peekable<'_, L>where
L: FallibleLender,
Source§type Lend = <L as FallibleLending<'lend>>::Lend
type Lend = <L as FallibleLending<'lend>>::Lend
impl<'this, L> FusedFallibleLender for Peekable<'this, L>where
L: FusedFallibleLender,
Auto Trait Implementations§
impl<'this, L> Freeze for Peekable<'this, L>
impl<'this, L> RefUnwindSafe for Peekable<'this, L>
impl<'this, L> Send for Peekable<'this, L>
impl<'this, L> Sync for Peekable<'this, L>
impl<'this, L> Unpin for Peekable<'this, L>
impl<'this, L> UnsafeUnpin for Peekable<'this, L>
impl<'this, L> UnwindSafe for Peekable<'this, L>
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
Source§impl<L> IntoFallibleLender for Lwhere
L: FallibleLender,
impl<L> IntoFallibleLender for Lwhere
L: FallibleLender,
Source§type Error = <L as FallibleLender>::Error
type Error = <L as FallibleLender>::Error
Source§type FallibleLender = L
type FallibleLender = L
Source§fn into_fallible_lender(self) -> L
fn into_fallible_lender(self) -> L
FallibleLender.