[][src]Struct sacabase::SuffixArray

pub struct SuffixArray<'a, Index> where
    Index: ToPrimitive
{ /* fields omitted */ }

A suffix array

Methods

impl<'a, Index> SuffixArray<'a, Index> where
    Index: ToPrimitive
[src]

pub fn new(text: &'a [u8], sa: Vec<Index>) -> Self[src]

Create an instance of SuffixArray, taking ownership of sa

pub fn into_parts(self) -> (&'a [u8], Vec<Index>)[src]

Return (text, sa), giving back ownership of sa

pub fn verify(&self) -> Result<(), NotSorted>[src]

Verifies that this suffix array is sorted.

pub fn text(&self) -> &[u8][src]

Returns a reference to the text

Trait Implementations

impl<'a, Index> StringIndex<'a> for SuffixArray<'a, Index> where
    Index: ToPrimitive
[src]

Auto Trait Implementations

impl<'a, Index> Send for SuffixArray<'a, Index> where
    Index: Send

impl<'a, Index> Sync for SuffixArray<'a, Index> where
    Index: Sync

impl<'a, Index> Unpin for SuffixArray<'a, Index> where
    Index: Unpin

impl<'a, Index> UnwindSafe for SuffixArray<'a, Index> where
    Index: UnwindSafe

impl<'a, Index> RefUnwindSafe for SuffixArray<'a, Index> where
    Index: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]