pub trait FmIndex { fn count(&self, pattern: Pattern<'_>) -> u64; fn locate(&self, pattern: Pattern<'_>) -> Vec<u64>; }
FmIndex can count and locate Pattern.
Count the number of times the Pattern appears.
Locate the start index in which the Pattern appears. The result vector is not sorted.