[][src]Struct bit_matrix::row::BitVecSlice

pub struct BitVecSlice { /* fields omitted */ }

A slice of bit vector's blocks.

Methods

impl BitVecSlice[src]

pub fn new(slice: &[Block]) -> &Self[src]

Creates a new slice from a slice of blocks.

pub fn new_mut(slice: &mut [Block]) -> &mut Self[src]

Creates a new slice from a mutable slice of blocks.

Important traits for Iter<'a>
pub fn iter_bits(&self, len: usize) -> Iter[src]

Iterates over bits.

pub fn get(&self, bit: usize) -> bool[src]

Returns true if a bit is enabled in the bit vector slice, or false otherwise.

Trait Implementations

impl Deref for BitVecSlice[src]

type Target = [Block]

The resulting type after dereferencing.

impl DerefMut for BitVecSlice[src]

impl Index<usize> for BitVecSlice[src]

Returns true if a bit is enabled in the bit vector slice, or false otherwise.

type Output = bool

The returned type after indexing.

Auto Trait Implementations

Blanket Implementations

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]