Skip to content
API REFERENCEUsage guides →

cellpack::scans::Rows ​

enum

Module contract · All interfaces

At a glance ​

pub enum Rows<'a> {
    All,
    Range {
        start: usize,
        end: usize,
    },
    List(&'a [u32]),
}

Borrowed inputs, selections and encoding options. Which rows of a matrix or chunk an operation covers, in the given order.

Fields and variants ​

All ​

All

Every row, in order.

Range ​

Range

Rows start..end.

List ​

List(&'a [u32])

The listed rows, in the listed order (repeats allowed).

Member index ​

2 of 2 members

  • countNumber of selected rows, after checking the selection against n_rows .
  • getThe i -th selected row; i below a checked Rows::count .

Methods and associated constants ​

count ​

pub fn count(&self, n_rows: usize) -> Result<usize>

Number of selected rows, after checking the selection against n_rows.

get ​

pub fn get(&self, i: usize) -> usize

The i-th selected row; i below a checked Rows::count.

Implemented traits ​

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