Skip to content
API REFERENCEUsage guides →

cellpack::scans::record_bound ​

fn

Module contract · All interfaces

At a glance ​

pub fn record_bound(
    n_genes: u32,
    value_width: usize,
    nnz: usize,
    dense: bool,
) -> usize

Chunk and record encoding, the reusable PreparedEncoder, and the output and workspace bounds of both. Largest record a row of at most nnz stored elements can produce; dense when the row may be stored with all n_genes elements.

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