Appearance
cellpack::scans::Offsets
Module contract · All interfaces
At a glance
Borrowed inputs, selections and encoding options. Borrowed CSR row offsets; signed inputs are checked before indexing.
Fields and variants
U32
U32(&'a [u32])32-bit offsets.
U64
U64(&'a [u64])64-bit offsets.
I32
I32(&'a [i32])Signed 32-bit offsets; negative entries are rejected.
I64
I64(&'a [i64])Signed 64-bit offsets; negative entries are rejected.
Member index
3 of 3 members
Methods and associated constants
len
Number of offsets, one more than the rows they describe.
is_empty
Whether there is no offset, i.e. no row.
get
Offset i as an unsigned value; a negative entry is an error.
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.