Skip to content
API REFERENCEUsage guides →

cellpack::scans::RowRef ​

enum

Module contract · All interfaces

At a glance ​

pub enum RowRef<'a> {
    Sparse(CellRef<'a>),
    Dense(&'a [u8]),
}

Borrowed inputs, selections and encoding options. One input row: sparse (a cell) or dense (n_genes values).

Fields and variants ​

Sparse ​

Sparse(CellRef<'a>)

Stored elements, normally the non-zeros, with ascending gene ids.

Dense ​

Dense(&'a [u8])

Every gene, in gene order.

Implemented traits ​

impl<'a> Clone for RowRef<'a>
impl<'a> Debug for RowRef<'a>
impl<'a> From<&CellRef<'a>> for RowRef<'a>
impl<'a> From<CellRef<'a>> for RowRef<'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