pub struct Chunky<L> { /* private fields */ }Expand description
A lender yielding lenders (Chunks) returning the next
chunk_size lends.
This is the closest lending approximation to
core::iter::ArrayChunks (unstable), as we cannot accumulate
the lends into an array. Unlike ArrayChunks, which yields
fixed-size arrays, Chunky yields Chunk lenders that
must be consumed to access the elements.
This struct is created by Lender::chunky or
FallibleLender::chunky.
§Important: Partial Chunk Consumption
Each Chunk yielded by Chunky must be fully consumed
before requesting the next chunk. If a chunk is not fully
consumed, the unconsumed elements are effectively skipped,
and the next chunk will start from whatever position the
underlying lender is at.
This behavior differs from core::slice::Chunks where
each chunk is a complete view. With Chunky, you are
borrowing from a single underlying lender, so partial
consumption affects subsequent chunks.
Partial chunk consumption also has the consequence of not enumerating entirely the elements returned by the underlying lender, as the number of chunks is computed at the start. Thus, in case of partial chunk consumption the last element of the last chunk will not be the last element of the underlying lender.
Implementations§
Source§impl<L> Chunky<L>
impl<L> Chunky<L>
Sourcepub fn into_inner(self) -> L
pub fn into_inner(self) -> L
Returns the inner lender.
Sourcepub fn into_parts(self) -> (L, usize)
pub fn into_parts(self) -> (L, usize)
Returns the inner lender and the chunk size.
Trait Implementations§
Source§impl<L> FallibleLender for Chunky<L>where
L: FallibleLender,
impl<L> FallibleLender for Chunky<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 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 count(self) -> Result<usize, Self::Error>
fn count(self) -> Result<usize, Self::Error>
Ok(None) or Err(_). Read moreSource§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 last<'call>(
&'call mut self,
) -> Result<Option<FallibleLend<'call, Self>>, Self::Error>where
Self: Sized,
fn last<'call>(
&'call mut self,
) -> Result<Option<FallibleLend<'call, Self>>, Self::Error>where
Self: Sized,
Source§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_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 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 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 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_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 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 Chunky<L>where
L: FallibleLender,
impl<'lend, L> FallibleLending<'lend> for Chunky<L>where
L: FallibleLender,
Source§impl<L> Lender for Chunky<L>where
L: Lender,
impl<L> Lender for Chunky<L>where
L: Lender,
Source§fn __check_covariance<'long: 'short, 'short>(
proof: CovariantProof<<Self as Lending<'long>>::Lend>,
) -> CovariantProof<<Self as Lending<'short>>::Lend>
fn __check_covariance<'long: 'short, 'short>( proof: CovariantProof<<Self as Lending<'long>>::Lend>, ) -> CovariantProof<<Self as Lending<'short>>::Lend>
Source§fn next(&mut self) -> Option<Lend<'_, Self>>
fn next(&mut self) -> Option<Lend<'_, Self>>
Source§fn size_hint(&self) -> (usize, Option<usize>)
fn size_hint(&self) -> (usize, Option<usize>)
.len() for the exact length if the lender
implements ExactSizeLender. Read moreSource§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 last<'call>(&'call mut self) -> Option<Lend<'call, Self>>where
Self: Sized,
fn last<'call>(&'call mut self) -> Option<Lend<'call, Self>>where
Self: Sized,
Source§fn advance_by(&mut self, n: usize) -> Result<(), NonZeroUsize>
fn advance_by(&mut self, n: usize) -> Result<(), NonZeroUsize>
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 IntoLender>::Lender>
fn chain<U>(self, other: U) -> Chain<Self, <U as IntoLender>::Lender>
Source§fn zip<U: IntoLender>(self, other: U) -> Zip<Self, <U as IntoLender>::Lender>where
Self: Sized,
fn zip<U: IntoLender>(self, other: U) -> Zip<Self, <U as IntoLender>::Lender>where
Self: Sized,
Source§fn intersperse_with<'call, G>(
self,
separator: G,
) -> IntersperseWith<'call, Self, G>
fn intersperse_with<'call, G>( self, separator: G, ) -> IntersperseWith<'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_into_iter<O, F: FnMut(Lend<'_, Self>) -> O>(
self,
f: F,
) -> MapIntoIter<Self, O, F> ⓘwhere
Self: Sized,
fn map_into_iter<O, F: FnMut(Lend<'_, Self>) -> O>(
self,
f: F,
) -> MapIntoIter<Self, O, F> ⓘwhere
Self: Sized,
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) -> Peekable<'call, Self>where
Self: Sized,
fn peekable<'call>(self) -> Peekable<'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 mutate<F>(self, f: F) -> Mutate<Self, F>
fn mutate<F>(self, f: F) -> Mutate<Self, F>
Source§fn collect<B>(self) -> Bwhere
Self: Sized,
B: FromLender<Self>,
fn collect<B>(self) -> Bwhere
Self: Sized,
B: FromLender<Self>,
Source§fn collect_into<E>(self, collection: &mut E) -> &mut Ewhere
Self: Sized,
E: ExtendLender<Self>,
fn collect_into<E>(self, collection: &mut E) -> &mut Ewhere
Self: Sized,
E: ExtendLender<Self>,
Source§fn is_partitioned<P>(self, predicate: P) -> bool
fn is_partitioned<P>(self, predicate: P) -> bool
Source§fn try_for_each<F, R>(&mut self, f: F) -> R
fn try_for_each<F, R>(&mut self, f: F) -> R
Source§fn find_map<'a, F>(
&'a mut self,
f: F,
) -> Option<<F as FnMutHKAOpt<'a, Lend<'a, Self>>>::B>
fn find_map<'a, F>( &'a mut self, f: F, ) -> Option<<F as FnMutHKAOpt<'a, Lend<'a, Self>>>::B>
Source§fn product<P>(self) -> Pwhere
Self: Sized,
P: ProductLender<Self>,
fn product<P>(self) -> Pwhere
Self: Sized,
P: ProductLender<Self>,
Source§fn partial_cmp<L>(self, other: L) -> Option<Ordering>
fn partial_cmp<L>(self, other: L) -> Option<Ordering>
Source§fn partial_cmp_by<L, F>(self, other: L, partial_cmp: F) -> Option<Ordering>
fn partial_cmp_by<L, F>(self, other: L, partial_cmp: F) -> Option<Ordering>
Source§fn is_sorted_by_key<F, K>(self, f: F) -> bool
fn is_sorted_by_key<F, K>(self, f: F) -> bool
Source§fn lender_by_ref<'this>(self) -> FromIterRef<Iter<'this, Self>>
fn lender_by_ref<'this>(self) -> FromIterRef<Iter<'this, Self>>
Source§fn convert<E>(self) -> Convert<E, Self>where
Self: Sized,
fn convert<E>(self) -> Convert<E, Self>where
Self: Sized,
Lender whose lend type is Result<T, E> into a
FallibleLender with error type E and lend type T. Read moreSource§fn into_fallible(self) -> IntoFallible<Self>where
Self: Sized,
fn into_fallible(self) -> IntoFallible<Self>where
Self: Sized,
Lender into a FallibleLender
by wrapping into Result<Lend<'_, Self>, Infallible> where
Infallible is an error that can never actually happen. Read moreimpl<L> FusedFallibleLender for Chunky<L>where
L: FusedFallibleLender,
impl<L> FusedLender for Chunky<L>where
L: FusedLender,
Auto Trait Implementations§
impl<L> Freeze for Chunky<L>where
L: Freeze,
impl<L> RefUnwindSafe for Chunky<L>where
L: RefUnwindSafe,
impl<L> Send for Chunky<L>where
L: Send,
impl<L> Sync for Chunky<L>where
L: Sync,
impl<L> Unpin for Chunky<L>where
L: Unpin,
impl<L> UnsafeUnpin for Chunky<L>where
L: UnsafeUnpin,
impl<L> UnwindSafe for Chunky<L>where
L: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.