[][src]Crate rustdoc_seeker

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

DocItem represent a searchable item, Use Display to get the relative URI of the item.

RustDoc

RustDoc contains DocItems, which could be convert to RustDocSeeker.

RustDocSeeker

RustDocSeeker contains DocItems and Index for fast searching.

Enums

TypeItem

TypeItem represent an item with type, Use Display or fmt_url to get the type dot name format of the item.