Crate rustdoc_seeker[][src]

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

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 to get the type dot name format of the item