Appearance
cellpack::scans::Mapper
Module contract · All interfaces
At a glance
pub struct Mapper<S, T> { /* private fields */ }Mapping decoded rows onto a caller column panel, and the element types its conversions take. Maps decoded rows of element type S to outputs of T, with the kernel for every value encoding and output shape chosen once, for the kernel set the mapper was bound to. Build one per element-type pair and reuse it for every row; the methods behave as map_parts, map_parts_at and map_dense.
Member index
5 of 5 members
newA mapper on the process kernel set ( crate::runtime::get ).for_runtimeA mapper on the kernel set of rt .map_partsSee map_parts .map_parts_atSee map_parts_at .map_denseSee map_dense .
Methods and associated constants
new
A mapper on the process kernel set (crate::runtime::get).
for_runtime
pub fn for_runtime(rt: &Runtime) -> SelfA mapper on the kernel set of rt.
map_parts
pub fn map_parts(
&self,
parts: &Parts<'_>,
map: &[u32],
dict: &[T],
modes: &[T],
cols: &mut [u32],
vals: &mut [T],
) -> Result<usize>See map_parts.
map_parts_at
pub fn map_parts_at(
&self,
parts: &Parts<'_>,
positions: &[u32],
map: &[u32],
dict: &[T],
modes: &[T],
cols: &mut [u32],
vals: &mut [T],
) -> Result<()>See map_parts_at.
map_dense
pub fn map_dense(
&self,
parts: &Parts<'_>,
map: &[u32],
dict: &[T],
modes: &[T],
out: &mut [T],
fill: Fill,
) -> Result<()>See map_dense.
Contract reference
See the module reference for semantic input/output rules, units, allocation, mutation, failure behavior, and lifetime requirements. Declarations and documented members are synchronized from the crate source.