Struct bit_matrix::submatrix::BitSubMatrix [] [src]

pub struct BitSubMatrix<'a> {
    // some fields omitted
}

Immutable access to a range of matrix's rows.

Methods

impl<'a> BitSubMatrix<'a>

fn new(slice: &[Block], row_bits: usize) -> BitSubMatrix

Returns a new BitSubMatrix.

unsafe fn from_raw_parts(ptr: *const Block, rows: usize, row_bits: usize) -> Self

Forms a BitSubMatrix from a pointer and dimensions.

fn iter(&self) -> Map<Chunks<Block>, fn(&[Block]) -> &BitVecSlice>

Iterates over the matrix's rows in the form of mutable slices.

Trait Implementations

impl<'a> Index<usize> for BitSubMatrix<'a>

Returns the matrix's row in the form of a mutable slice.

type Output = BitVecSlice

fn index(&self, row: usize) -> &BitVecSlice

impl<'a> Debug for BitSubMatrix<'a>

fn fmt(&self, fmt: &mut Formatter) -> Result