itertools::structs

Type Alias GroupBy

Source
pub type GroupBy<K, I, F> = ChunkBy<K, I, F>;
👎Deprecated since 0.13.0: Use ChunkBy instead
Expand description

See ChunkBy.

Aliased Type§

struct GroupBy<K, I, F> {
    inner: RefCell<GroupInner<K, I, F>>,
    index: Cell<usize>,
}

Fields§

§inner: RefCell<GroupInner<K, I, F>>§index: Cell<usize>

Implementations

Source§

impl<K, I, F> ChunkBy<K, I, F>
where I: Iterator,

Source

fn step(&self, client: usize) -> Option<I::Item>
where F: FnMut(&I::Item) -> K, K: PartialEq,

client: Index of group that requests next element

Source

fn drop_group(&self, client: usize)

client: Index of group