Appearance
cellpack::scans::Indices
Module contract · All interfaces
At a glance
pub enum Indices<'a> {
U16(&'a [u16]),
U32(&'a [u32]),
I32(&'a [i32]),
I64(&'a [i64]),
U64(&'a [u64]),
}Borrowed inputs, selections and encoding options. Gene indices of a matrix or a cell, in their stored width.
Fields and variants
U16
U16(&'a [u16])16-bit indices; every entry is in the u32 range.
U32
U32(&'a [u32])32-bit indices.
I32
I32(&'a [i32])Signed 32-bit indices; negative entries are rejected.
I64
I64(&'a [i64])Signed 64-bit indices; entries outside the u32 range are rejected.
U64
U64(&'a [u64])Unsigned 64-bit indices; entries outside the u32 range are rejected.
Member index
Methods and associated constants
len
Number of indices.
is_empty
Whether the selection holds no index.
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.