Crate rustdoc_seeker
source ·Expand description
§Example
let data = fs::read_to_string("search-index.js").unwrap();
let rustdoc: RustDoc = data.parse().unwrap();
let seeker = rustdoc.build().unwrap();
for i in seeker.search_regex("dedup.*") {
println!("{}", i);
}
for i in seeker.search_edist("dedap", 1) {
println!("{}", i);
}Structs§
- DocItem represent a searchable item, Use
Displayto get the relative URI of the item - RustDoc contains DocItems, which could be convert to RustDocSeeker
- RustDocSeeker contains DocItems and Index for fast searching
Enums§
- TypeItem represent an item with type, Use
Displayto get thetype dot nameformat of the item