ChunkedView

Type Alias ChunkedView 

Source
pub type ChunkedView<'a, S> = Chunked<S, Offsets<&'a [usize]>>;

Aliased Type§

pub struct ChunkedView<'a, S> {
    pub chunks: Offsets<&'a [usize]>,
    pub data: S,
}

Fields§

§chunks: Offsets<&'a [usize]>

This can be either offsets of a uniform chunk size, if chunk size is specified at compile time.

§data: S

Trait Implementations§

Source§

impl<S, N> IntoStaticChunkIterator<N> for ChunkedView<'_, S>
where Self: Set + SplitPrefix<N> + Dummy, N: Unsigned,

Source§

type Item = <Chunked<S, Offsets<&[usize]>> as SplitPrefix<N>>::Prefix

Source§

type IterType = UniChunkedIter<Chunked<S, Offsets<&[usize]>>, N>

Source§

fn into_static_chunk_iter(self) -> Self::IterType

This function should panic if this collection length is not a multiple of N.
Source§

fn into_generic_static_chunk_iter(self) -> UniChunkedIter<Self, N>

Simply call this method for all types that implement SplitPrefix<N>.