[−][src]Struct sacabase::SuffixArray
A suffix array
Methods
impl<'a, Index> SuffixArray<'a, Index> where
Index: ToPrimitive,
[src]
Index: ToPrimitive,
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]
Index: ToPrimitive,
fn longest_substring_match(&self, needle: &[u8]) -> LongestCommonSubstring<'a>
[src]
Auto Trait Implementations
impl<'a, Index> Send for SuffixArray<'a, Index> where
Index: Send,
Index: Send,
impl<'a, Index> Sync for SuffixArray<'a, Index> where
Index: Sync,
Index: Sync,
impl<'a, Index> Unpin for SuffixArray<'a, Index> where
Index: Unpin,
Index: Unpin,
impl<'a, Index> UnwindSafe for SuffixArray<'a, Index> where
Index: UnwindSafe,
Index: UnwindSafe,
impl<'a, Index> RefUnwindSafe for SuffixArray<'a, Index> where
Index: RefUnwindSafe,
Index: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,