Trait qwt::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 fro 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.

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, RS, const WITH_PREFETCH_SUPPORT: bool> AccessUnsigned for QWaveletTree<T, RS, WITH_PREFETCH_SUPPORT>
where T: WTIndexable, u8: AsPrimitive<T>, RS: RSforWT,

§

type Item = T