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>