Function sa_ord::sais

source · []
pub fn sais<S: Ord + Clone + Hash + Debug>(text: &[S]) -> Result<Vec<usize>>
Expand description

Performs SA-IS (Suffix Array - Induced Sorting) of a provided text.

Errors

Will return Error::TryFromIntError if there are more LMS substrings than there are positive numbers in isize (if so you likely have bigger problems). May also Error if the last character of the text is not a sentinel character (i.e. the unambiguous smallest character in the text).