Expand description
§Example
let data = fs::read_to_string("search-index.js").unwrap();
let rustdoc: RustDoc = data.parse().unwrap();
let seeker = rustdoc.build();
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
Display
to 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
Display
orfmt_url
to get thetype dot name
format of the item.