[−][src]Trait flatk::ViewIterator
A convenience trait to allow generic implementations to call an iterator over the view. This
is necessary because the View
trait has an explicit lifetime parameter, which makes it
difficult or impossible to use in generic functions.
For instance it becomes difficult/impossible to impose constraints like Set
on View::Type
.
Associated Types
Loading content...Required methods
Loading content...Implementations on Foreign Types
impl<'a, T: 'a> ViewIterator<'a> for [T]
[src]
impl<'a, T: 'a> ViewIterator<'a> for Vec<T>
[src]
Loading content...
Implementors
impl<'a, S> ViewIterator<'a> for ChunkedN<S> where
S: View<'a>,
<S as View<'a>>::Type: SplitAt + Set + Dummy,
[src]
S: View<'a>,
<S as View<'a>>::Type: SplitAt + Set + Dummy,
impl<'a, S, I> ViewIterator<'a> for Subset<S, I> where
S: Set + View<'a>,
I: AsRef<[usize]>,
<S as View<'a>>::Type: SplitAt + SplitFirst + Set + Dummy,
[src]
S: Set + View<'a>,
I: AsRef<[usize]>,
<S as View<'a>>::Type: SplitAt + SplitFirst + Set + Dummy,
type Item = <<S as View<'a>>::Type as SplitFirst>::First
type Iter = SubsetIter<S::Type, &'a [usize]>
fn view_iter(&'a self) -> Self::Iter
[src]
impl<'a, S, N> ViewIterator<'a> for UniChunked<S, U<N>> where
S: View<'a>,
<S as View<'a>>::Type: IntoStaticChunkIterator<N>,
N: Unsigned,
[src]
S: View<'a>,
<S as View<'a>>::Type: IntoStaticChunkIterator<N>,
N: Unsigned,
type Item = <S::Type as IntoStaticChunkIterator<N>>::Item
type Iter = <S::Type as IntoStaticChunkIterator<N>>::IterType
fn view_iter(&'a self) -> Self::Iter
[src]
impl<'a, S, O> ViewIterator<'a> for Chunked<S, O> where
S: View<'a>,
O: View<'a, Type = Offsets<&'a [usize]>>,
<S as View<'a>>::Type: SplitAt + Set + Dummy,
[src]
S: View<'a>,
O: View<'a, Type = Offsets<&'a [usize]>>,
<S as View<'a>>::Type: SplitAt + Set + Dummy,
type Item = <S as View<'a>>::Type
type Iter = VarIter<'a, <S as View<'a>>::Type>
fn view_iter(&'a self) -> Self::Iter
[src]
impl<'a, S, T, I> ViewIterator<'a> for Sparse<S, T, I> where
S: View<'a>,
<S as View<'a>>::Type: Set + IntoIterator,
[src]
S: View<'a>,
<S as View<'a>>::Type: Set + IntoIterator,