indexical

Trait FromIndexicalIterator

Source
pub trait FromIndexicalIterator<'a, T: IndexedValue + 'a, P: PointerFamily<'a>, M, A>: Sized {
    // Required method
    fn from_indexical_iter(
        iter: impl Iterator<Item = A>,
        domain: &P::Pointer<IndexedDomain<T>>,
    ) -> Self;
}
Expand description

Generic interface for converting iterators into indexical collections.

Required Methods§

Source

fn from_indexical_iter( iter: impl Iterator<Item = A>, domain: &P::Pointer<IndexedDomain<T>>, ) -> Self

Converts an iterator into a collection within the given domain.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, K, V, P, M, U> FromIndexicalIterator<'a, K, P, M, (U, V)> for DenseIndexMap<'a, K, V, P>
where K: IndexedValue + 'a, P: PointerFamily<'a>, U: ToIndex<K, M>,

Source§

impl<'a, K, V, P, M, U> FromIndexicalIterator<'a, K, P, M, (U, V)> for SparseIndexMap<'a, K, V, P>
where K: IndexedValue + 'a, P: PointerFamily<'a>, U: ToIndex<K, M>,

Source§

impl<'a, T, U, S, M, P> FromIndexicalIterator<'a, T, P, M, U> for IndexSet<'a, T, S, P>
where T: IndexedValue + 'a, S: BitSet, P: PointerFamily<'a>, U: ToIndex<T, M>,