Struct Groups
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct Groups<'a, K, I, F>
where
I: Iterator + 'a,
I::Item: 'a,
K: 'a,
F: 'a, { /* private fields */ }
An iterator that yields the Group iterators.
Iterator element type is (K, Group):
the group's key K and the group's iterator.
See .chunk_by() for more information.
Trait Implementations
impl<'a, K, I, F> Debug for Groups<'a, K, I, F>
where
K: Debug,
I: Iterator + Debug,
I::Item: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'a, K, I, F> Iterator for Groups<'a, K, I, F>
where
I: Iterator,
I::Item: 'a,
F: FnMut(&I::Item) -> K,
K: PartialEq,
type Item = (K, Group<'a, K, I, F>);fn next(&mut self) -> Option<Self::Item>
Auto Trait Implementations
impl<'a, K, I, F> !RefUnwindSafe for Groups<'a, K, I, F>
impl<'a, K, I, F> !Send for Groups<'a, K, I, F>
impl<'a, K, I, F> !Sync for Groups<'a, K, I, F>
impl<'a, K, I, F> !UnwindSafe for Groups<'a, K, I, F>
impl<'a, K, I, F> Freeze for Groups<'a, K, I, F>
where
&'a ChunkBy<K, I, F>: Freeze,
impl<'a, K, I, F> Unpin for Groups<'a, K, I, F>
where
&'a ChunkBy<K, I, F>: Unpin,
impl<'a, K, I, F> UnsafeUnpin for Groups<'a, K, I, F>
where
&'a ChunkBy<K, I, F>: UnsafeUnpin,
Blanket Implementations
impl<I> IntoIterator for Groups<'a, K, I, F>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<IT, A, FromA, B, FromB> MultiUnzip<(FromA, FromB)> for Groups<'a, K, I, F>
where
IT: Iterator<Item = (A, B)>,
FromA: Default + Extend<A>,
FromB: Default + Extend<B>,
fn multiunzip(self) -> (FromA, FromB)
impl<T> Any for Groups<'a, K, I, F>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Groups<'a, K, I, F>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Groups<'a, K, I, F>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Groups<'a, K, I, F>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for Groups<'a, K, I, F>
impl<T> Itertools for Groups<'a, K, I, F>
where
T: Iterator + ?Sized,
impl<T, U> Into<U> for Groups<'a, K, I, F>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Groups<'a, K, I, F>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Groups<'a, K, I, F>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>