SparseView

Type Alias SparseView 

Source
pub type SparseView<'a, S, T> = Sparse<S, T, &'a [usize]>;
Expand description

A borrowed view of a sparse collection.

Aliased Type§

pub struct SparseView<'a, S, T> {
    pub selection: Select<T, &'a [usize]>,
    pub source: S,
}

Fields§

§selection: Select<T, &'a [usize]>§source: S

Trait Implementations§

Source§

impl<'a, S, T> IntoIterator for SparseView<'a, S, T>
where S: SplitFirst + SplitAt + Dummy + Set,

Source§

type Item = (usize, <S as SplitFirst>::First)

The type of the elements being iterated over.
Source§

type IntoIter = SparseIter<Cloned<Iter<'a, usize>>, S>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more