Skip to content
API REFERENCEUsage guides →

cellpack::scans::Dict ​

struct

Module contract · All interfaces

At a glance ​

pub struct Dict<'a> { /* private fields */ }

Record and chunk decoding: CSR arrays, dense rows and Parts views, plus the workspace sizing those calls need. A record’s dictionary: k distinct values ascending, and each element’s position in it. Debug builds check every rank against k.

Member index ​

5 of 5 members

  • kDistinct values in the dictionary.
  • value_widthBytes per entry.
  • entriesThe k entries, value_width little-endian bytes each.
  • ranksEach element’s position in Self::entries .
  • cast_intoThe k entries read as S and converted to T into out[..k] . S must have the chunk’s value width.

Methods and associated constants ​

k ​

pub fn k(&self) -> usize

Distinct values in the dictionary.

value_width ​

pub fn value_width(&self) -> usize

Bytes per entry.

entries ​

pub fn entries(&self) -> &'a [u8] ⓘ

The k entries, value_width little-endian bytes each.

ranks ​

pub fn ranks(&self) -> Ranks<'a>

Each element’s position in Self::entries.

cast_into ​

pub fn cast_into<S: CastInto<T>, T: Element>(&self, out: &mut [T]) -> Result<()>

The k entries read as S and converted to T into out[..k]. S must have the chunk’s value width.

Implemented traits ​

impl<'a> Clone for Dict<'a>
impl<'a> Debug for Dict<'a>

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.

Definition