pub struct RustDocSeeker { /* fields omitted */ }
RustDocSeeker contains DocItems and Index for fast searching
The index is kv-map for <name, idx: u64 = (start: u32 << 32) + end: u32>
where items[start..end] having the same DocItem.name.
let seeker = rustdoc.build().unwrap();
Search with fst::Automaton, read fst::automaton / fst-levenshtein / fst-regex for details.
let aut = fst_regex::Regex::new(".*dedup.*").unwrap();
for i in seeker.search(aut) {
println!("{:?}", i);
}
let aut = fst_levenshtein::Levenshtein::new("dedXp", 1).unwrap();
for i in seeker.search(aut) {
println!("{:?}", i);
}
let aut = fst::automaton::Subsequence::new("dedup", 1).unwrap();
for i in seeker.search(aut) {
println!("{:?}", i);
}
Formats the value using the given formatter. Read more