AccessUnsigned

Trait AccessUnsigned 

Source
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§

Source

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

Returns the symbol at position i, or None if the index i is out of bounds.

Source

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.

Implementors§

Source§

impl<T, BRS, const COMPRESSED: bool> AccessUnsigned for WaveletTree<T, BRS, COMPRESSED>

Source§

type Item = T

Source§

impl<T, RS, const WITH_PREFETCH_SUPPORT: bool> AccessUnsigned for HuffQWaveletTree<T, RS, WITH_PREFETCH_SUPPORT>
where T: WTIndexable, usize: AsPrimitive<T>, RS: RSforWT,

Source§

type Item = T

Source§

impl<T, RS, const WITH_PREFETCH_SUPPORT: bool> AccessUnsigned for QWaveletTree<T, RS, WITH_PREFETCH_SUPPORT>
where T: WTIndexable, usize: AsPrimitive<T>, RS: RSforWT,

Source§

type Item = T