Skip to content
API REFERENCEUsage guides →

cellpack::scans::Indices ​

enum

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 ​

2 of 2 members

  • lenNumber of indices.
  • is_emptyWhether the selection holds no index.

Methods and associated constants ​

len ​

pub fn len(&self) -> usize

Number of indices.

is_empty ​

pub fn is_empty(&self) -> bool

Whether the selection holds no index.

Implemented traits ​

impl<'a> Clone for Indices<'a>
impl<'a> Debug for Indices<'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