[−][src]Struct suffix_array::SuffixArray
Suffix array for searching byte strings.
Methods
impl<'s> SuffixArray<'s>[src]
pub fn new(s: &'s [u8]) -> Self[src]
pub fn set(&mut self, s: &'s [u8])[src]
pub fn fit(&mut self)[src]
pub fn len(&self) -> usize[src]
Length of the underlying byte string.
pub fn is_empty(&self) -> bool[src]
Test if the underlying byte string is empty.
pub fn contains(&self, sub: &[u8]) -> bool[src]
Test if contains given sub-string.
pub fn search_all(&self, sub: &[u8]) -> &[u32][src]
Search for all the unsorted overlapping occurrence of given sub-string.
pub fn search_prefix(&self, pat: &[u8]) -> Range<usize>[src]
Search for one longest infix in the byte string that matches a prefix of the given pattern.
Trait Implementations
impl<'s> Clone for SuffixArray<'s>[src]
fn clone(&self) -> SuffixArray<'s>[src]
default fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl<'s> Send for SuffixArray<'s>
impl<'s> Sync for SuffixArray<'s>
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,