pub struct KthSubstrings<'a, T>where
T: Ord,{
tree: &'a SuffixTree<T>,
prefix_distinct: Vec<u64>,
prefix_total: Vec<u64>,
}Fields§
§tree: &'a SuffixTree<T>§prefix_distinct: Vec<u64>§prefix_total: Vec<u64>Implementations§
Source§impl<'a, T> KthSubstrings<'a, T>where
T: Ord,
impl<'a, T> KthSubstrings<'a, T>where
T: Ord,
Sourcefn new(tree: &'a SuffixTree<T>) -> Self
fn new(tree: &'a SuffixTree<T>) -> Self
pub fn kth_distinct_substring(&self, k: u64) -> Option<Range<usize>>
pub fn kth_substring(&self, k: u64) -> Option<Range<usize>>
pub fn index_of_distinct_substring(&self, range: Range<usize>) -> u64
pub fn index_of_substring(&self, range: Range<usize>) -> u64
Auto Trait Implementations§
impl<'a, T> Freeze for KthSubstrings<'a, T>
impl<'a, T> RefUnwindSafe for KthSubstrings<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for KthSubstrings<'a, T>where
T: Sync,
impl<'a, T> Sync for KthSubstrings<'a, T>where
T: Sync,
impl<'a, T> Unpin for KthSubstrings<'a, T>
impl<'a, T> UnsafeUnpin for KthSubstrings<'a, T>
impl<'a, T> UnwindSafe for KthSubstrings<'a, T>where
T: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more