Trait indexical::IndexSetIteratorExt
source · 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§
sourcefn collect_indices(
self,
domain: &P::Pointer<IndexedDomain<T>>
) -> IndexSet<T, S, P>
fn collect_indices( self, domain: &P::Pointer<IndexedDomain<T>> ) -> IndexSet<T, S, P>
Creates an IndexSet
from an iterator over T
s.
We cannot just use the normal collect
method because this requires the domain as input.