pub trait AccessQuad {
// Required methods
fn get(&self, i: usize) -> Option<u8>;
unsafe fn get_unchecked(&self, i: usize) -> u8;
}Expand description
A trait for the support of get query over the alphabet [0..3].
Required Methods§
Sourcefn get(&self, i: usize) -> Option<u8>
fn get(&self, i: usize) -> Option<u8>
Returns the symbol at position i, None if the position is out of bound.
Sourceunsafe fn get_unchecked(&self, i: usize) -> u8
unsafe fn get_unchecked(&self, i: usize) -> u8
Returns the symbol at position i.
§Safety
Calling this method with an out-of-bounds index is undefined behavior.