Appearance
cellpack::scans::ModeDict
Module contract · All interfaces
At a glance
pub struct ModeDict<'a> { /* private fields */ }Record and chunk decoding: CSR arrays, dense rows and Parts views, plus the workspace sizing those calls need. A mode-coded record’s values: rank 0 is the element’s column mode (the chunk’s Meta::column_modes entry for its coded id) and rank r is dictionary entry r - 1. Ranks::One means every value is its column mode (an empty dictionary). Debug builds check every rank against k.
Member index
6 of 6 members
kValues that differ from their column mode, distinct.value_widthBytes per entry, and per column mode.entriesThe k entries, value_width little-endian bytes each.ranksEach element’s rank: 0 for its column mode, else entry rank - 1 .modesThe chunk’s column modes, value_width bytes per coded id.cast_intoThe k entries read as S and converted to T into out[..k] .
Methods and associated constants
k
Values that differ from their column mode, distinct.
value_width
pub fn value_width(&self) -> usizeBytes per entry, and per column mode.
entries
The k entries, value_width little-endian bytes each.
ranks
Each element’s rank: 0 for its column mode, else entry rank - 1.
modes
The chunk’s column modes, value_width bytes per coded id.
cast_into
The k entries read as S and converted to T into out[..k].
Implemented traits
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.