AccessBin

Trait AccessBin 

Source
pub trait AccessBin {
    // Required methods
    fn get(&self, i: usize) -> Option<bool>;
    unsafe fn get_unchecked(&self, i: usize) -> bool;
}
Expand description

A trait for the support of get query over the binary alphabet.

Required Methods§

Source

fn get(&self, i: usize) -> Option<bool>

Returns the bit at the given position i, or None if i is out of bounds.

Source

unsafe fn get_unchecked(&self, i: usize) -> bool

Returns the symbol at the given position i.

§Safety

Calling this method with an out-of-bounds index is undefined behavior.

Implementors§

Source§

impl AccessBin for RSNarrow

Source§

impl AccessBin for RSWide

Source§

impl AccessBin for BitVector

Source§

impl AccessBin for BitVectorMut

Source§

impl<const SELECT0_SUPPORT: bool> AccessBin for DArray<SELECT0_SUPPORT>