pub trait IndexSetIteratorExt<T: IndexedValue, S: BitSet, P: PointerFamily, M> {
    // Required method
    fn collect_indices(
        self,
        domain: &P::Pointer<IndexedDomain<T>>
    ) -> IndexSet<T, S, P>;
}
Expand description

Extension trait for iterators producing index sets.

Required Methods§

source

fn collect_indices( self, domain: &P::Pointer<IndexedDomain<T>> ) -> IndexSet<T, S, P>

Creates an IndexSet from an iterator over Ts.

We cannot just use the normal collect method because this requires the domain as input.

Implementors§

source§

impl<T, U, S, M, P, Iter> IndexSetIteratorExt<T, S, P, M> for Iter
where T: IndexedValue, S: BitSet, P: PointerFamily, Iter: Iterator<Item = U>, U: ToIndex<T, M>,