pub trait AccessUnsigned {
type Item: Unsigned;
// Required methods
fn get(&self, i: usize) -> Option<Self::Item>;
unsafe fn get_unchecked(&self, i: usize) -> Self::Item;
}Expand description
A trait for the support get query over an Unsigned alphabet.
Required Associated Types§
Required Methods§
Sourcefn get(&self, i: usize) -> Option<Self::Item>
fn get(&self, i: usize) -> Option<Self::Item>
Returns the symbol at position i, or None if the index i is out of bounds.
Sourceunsafe fn get_unchecked(&self, i: usize) -> Self::Item
unsafe fn get_unchecked(&self, i: usize) -> Self::Item
Returns the symbol at position i.
§Safety
Calling this method with an out-of-bounds index is undefined behavior.