Struct vec_vec::LendingIter
source · pub struct LendingIter<'a, T> { /* private fields */ }Expand description
A lending iterator over the entries of a Vec<Vec<T>>.
In this case, entry implies that it can be dereferenced either as a shared or a mutable reference.
Implementations§
Trait Implementations§
source§impl<'next, 'a, T> LendingIteratorඞItem<'next> for LendingIter<'a, T>
impl<'next, 'a, T> LendingIteratorඞItem<'next> for LendingIter<'a, T>
source§impl<'a, T> LendingIterator for LendingIter<'a, T>
impl<'a, T> LendingIterator for LendingIter<'a, T>
source§fn filter<F>(self, should_yield: F) -> Filter<Self, F>where
Self: Sized,
F: FnMut(&Self::T) -> bool,
fn filter<F>(self, should_yield: F) -> Filter<Self, F>where Self: Sized, F: FnMut(&Self::T) -> bool,
LendingIterator counterpart of Iterator::filter().source§fn for_each(self, f: impl FnMut(Self::T))where
Self: Sized,
fn for_each(self, f: impl FnMut(Self::T))where Self: Sized,
LendingIterator counterpart of Iterator::for_each().source§fn fold<Acc>(self, acc: Acc, f: impl FnMut(Acc, Self::T) -> Acc) -> Accwhere
Self: Sized,
fn fold<Acc>(self, acc: Acc, f: impl FnMut(Acc, Self::T) -> Acc) -> Accwhere Self: Sized,
LendingIterator counterpart of Iterator::fold().source§fn try_for_each<Err>(
&mut self,
f: impl FnMut(Self::T) -> Result<(), Err>
) -> Result<(), Err>
fn try_for_each<Err>( &mut self, f: impl FnMut(Self::T) -> Result<(), Err> ) -> Result<(), Err>
LendingIterator counterpart of Iterator::try_for_each().source§fn try_fold<Acc, Err>(
&mut self,
acc: Acc,
f: impl FnMut(Acc, Self::T) -> Result<Acc, Err>
) -> Result<Acc, Err>
fn try_fold<Acc, Err>( &mut self, acc: Acc, f: impl FnMut(Acc, Self::T) -> Result<Acc, Err> ) -> Result<Acc, Err>
LendingIterator counterpart of Iterator::try_fold().source§fn all(&mut self, predicate: impl FnMut(Self::T) -> bool) -> boolwhere
Self: Sized,
fn all(&mut self, predicate: impl FnMut(Self::T) -> bool) -> boolwhere Self: Sized,
LendingIterator counterpart of Iterator::all().source§fn any(&mut self, predicate: impl FnMut(Self::T) -> bool) -> boolwhere
Self: Sized,
fn any(&mut self, predicate: impl FnMut(Self::T) -> bool) -> boolwhere Self: Sized,
LendingIterator counterpart of Iterator::any().source§fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
fn by_ref(&mut self) -> &mut Selfwhere Self: Sized,
LendingIterator counterpart of Iterator::by_ref().source§fn count(self) -> usizewhere
Self: Sized,
fn count(self) -> usizewhere Self: Sized,
LendingIterator counterpart of Iterator::count().source§fn find<'find>(
&'find mut self,
predicate: impl FnMut(&Self::T) -> bool + 'find
) -> Option<Self::T>where
Self: Sized,
fn find<'find>( &'find mut self, predicate: impl FnMut(&Self::T) -> bool + 'find ) -> Option<Self::T>where Self: Sized,
LendingIterator counterpart of Iterator::find().source§fn fuse(self) -> Fuse<Self>where
Self: Sized,
fn fuse(self) -> Fuse<Self>where Self: Sized,
LendingIterator counterpart of Iterator::fuse().source§fn nth(&mut self, n: usize) -> Option<Self::T>
fn nth(&mut self, n: usize) -> Option<Self::T>
LendingIterator counterpart of Iterator::nth().source§fn position<F>(
&mut self,
predicate: impl FnMut(Self::T) -> bool
) -> Option<usize>where
Self: Sized,
fn position<F>( &mut self, predicate: impl FnMut(Self::T) -> bool ) -> Option<usize>where Self: Sized,
LendingIterator counterpart of Iterator::position().source§fn skip(self, count: usize) -> Skip<Self>where
Self: Sized,
fn skip(self, count: usize) -> Skip<Self>where Self: Sized,
LendingIterator counterpart of Iterator::skip().source§fn take(self, count: usize) -> Take<Self>where
Self: Sized,
fn take(self, count: usize) -> Take<Self>where Self: Sized,
LendingIterator counterpart of Iterator::take().source§fn map<NewItemType, F>(self, f: F) -> Map<Self, F, NewItemType>where
NewItemType: HKT,
F: for<'next> FnMut([&'next Self; 0], Self::T) -> <NewItemType as WithLifetime<'next>>::T,
Self: Sized,
fn map<NewItemType, F>(self, f: F) -> Map<Self, F, NewItemType>where NewItemType: HKT, F: for<'next> FnMut([&'next Self; 0], Self::T) -> <NewItemType as WithLifetime<'next>>::T, Self: Sized,
source§fn map_to_ref<R, F>(
self,
f: F
) -> Map<Self, F, HKT<dyn for<'ඞ> WithLifetime<'ඞ, T = &'ඞ R>>>where
F: for<'any> FnMut([&'any Self; 0], Self::T) -> &'any R,
Self: Sized,
R: ?Sized,
fn map_to_ref<R, F>( self, f: F ) -> Map<Self, F, HKT<dyn for<'ඞ> WithLifetime<'ඞ, T = &'ඞ R>>>where F: for<'any> FnMut([&'any Self; 0], Self::T) -> &'any R, Self: Sized, R: ?Sized,
source§fn map_to_mut<R, F>(
self,
f: F
) -> Map<Self, F, HKT<dyn for<'ඞ> WithLifetime<'ඞ, T = &'ඞ mut R>>>where
F: for<'any> FnMut([&'any Self; 0], Self::T) -> &'any mut R,
Self: Sized,
R: ?Sized,
fn map_to_mut<R, F>( self, f: F ) -> Map<Self, F, HKT<dyn for<'ඞ> WithLifetime<'ඞ, T = &'ඞ mut R>>>where F: for<'any> FnMut([&'any Self; 0], Self::T) -> &'any mut R, Self: Sized, R: ?Sized,
source§fn map_into_iter<F, NonLendingItem>(self, f: F) -> MapIntoIter<Self, F>where
F: FnMut(Self::T) -> NonLendingItem,
Self: Sized,
fn map_into_iter<F, NonLendingItem>(self, f: F) -> MapIntoIter<Self, F>where F: FnMut(Self::T) -> NonLendingItem, Self: Sized,
Convenience shorthand for
.map…(…).into_iter(). Read moresource§fn filter_map<NewItemType, F>(self, f: F) -> FilterMap<Self, F, NewItemType>where
NewItemType: HKT,
F: for<'next> FnMut([&'next Self; 0], Self::T) -> Option<<NewItemType as WithLifetime<'next>>::T>,
Self: Sized,
fn filter_map<NewItemType, F>(self, f: F) -> FilterMap<Self, F, NewItemType>where NewItemType: HKT, F: for<'next> FnMut([&'next Self; 0], Self::T) -> Option<<NewItemType as WithLifetime<'next>>::T>, Self: Sized,
source§fn filter_map_to_ref<R, F>(
self,
f: F
) -> FilterMap<Self, F, HKT<dyn for<'ඞ> WithLifetime<'ඞ, T = &'ඞ R>>>where
F: for<'any> FnMut([&'any Self; 0], Self::T) -> Option<&'any R>,
Self: Sized,
R: ?Sized,
fn filter_map_to_ref<R, F>( self, f: F ) -> FilterMap<Self, F, HKT<dyn for<'ඞ> WithLifetime<'ඞ, T = &'ඞ R>>>where F: for<'any> FnMut([&'any Self; 0], Self::T) -> Option<&'any R>, Self: Sized, R: ?Sized,
Convenience method: same as
.filter_map(), but for hard-coding the
HKT parameter to HKTRef<R> = HKT!(&R). Read moresource§fn filter_map_to_mut<R, F>(
self,
f: F
) -> FilterMap<Self, F, HKT<dyn for<'ඞ> WithLifetime<'ඞ, T = &'ඞ mut R>>>where
F: for<'any> FnMut([&'any Self; 0], Self::T) -> Option<&'any mut R>,
Self: Sized,
R: ?Sized,
fn filter_map_to_mut<R, F>( self, f: F ) -> FilterMap<Self, F, HKT<dyn for<'ඞ> WithLifetime<'ඞ, T = &'ඞ mut R>>>where F: for<'any> FnMut([&'any Self; 0], Self::T) -> Option<&'any mut R>, Self: Sized, R: ?Sized,
Convenience method: same as
.filter_map(), but for hard-coding the
HKT parameter to HKTRefMut<R> = HKT!(&mut R). Read moresource§fn filter_map_into_iter<F, NonLendingItem>(
self,
f: F
) -> FilterMapIntoIter<Self, F>where
F: FnMut(Self::T) -> Option<NonLendingItem>,
Self: Sized,
fn filter_map_into_iter<F, NonLendingItem>( self, f: F ) -> FilterMapIntoIter<Self, F>where F: FnMut(Self::T) -> Option<NonLendingItem>, Self: Sized,
Convenience shorthand for
.filter_map…(…).into_iter(). Read moresource§fn into_iter<Item>(self) -> IntoIter<Self>where
Self: for<'any> LendingIteratorඞItem<'any, T = Item> + Sized,
fn into_iter<Item>(self) -> IntoIter<Self>where Self: for<'any> LendingIteratorඞItem<'any, T = Item> + Sized,
source§fn dyn_boxed<'usability>(
self
) -> Box<dyn LendingIteratorDyn<Item = HKT<dyn for<'ඞ> WithLifetime<'ඞ, T = Self::T>>> + 'usability>where
Self: 'usability + Sized,
fn dyn_boxed<'usability>( self ) -> Box<dyn LendingIteratorDyn<Item = HKT<dyn for<'ඞ> WithLifetime<'ඞ, T = Self::T>>> + 'usability>where Self: 'usability + Sized,
source§fn dyn_boxed_auto<BoxedDynLendingIterator, Item>(
self
) -> BoxedDynLendingIteratorwhere
Item: HKT,
Self: Sized + DynCoerce<BoxedDynLendingIterator, Item>,
fn dyn_boxed_auto<BoxedDynLendingIterator, Item>( self ) -> BoxedDynLendingIteratorwhere Item: HKT, Self: Sized + DynCoerce<BoxedDynLendingIterator, Item>,
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for LendingIter<'a, T>where T: RefUnwindSafe,
impl<'a, T> Send for LendingIter<'a, T>where T: Sync,
impl<'a, T> Sync for LendingIter<'a, T>where T: Sync,
impl<'a, T> Unpin for LendingIter<'a, T>
impl<'a, T> UnwindSafe for LendingIter<'a, T>where T: RefUnwindSafe,
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