Skip to content

Commit be41750

Browse files
Greatly improve rustdoc search
1 parent 6fd7e90 commit be41750

File tree

2 files changed

+602
-394
lines changed

2 files changed

+602
-394
lines changed

src/librustdoc/html/static/js/externs.js

+24-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,30 @@ function initSearch(searchIndex){}
88

99
/**
1010
* @typedef {{
11-
* raw: string,
12-
* query: string,
13-
* type: string,
14-
* id: string,
11+
* isExact: boolean,
12+
* name: string,
13+
* fullPath: Array<string>,
14+
* pathWithoutLast: Array<string>,
15+
* pathLast: string,
16+
* generics: Array<QueryElement>,
17+
* }}
18+
*/
19+
var QueryElement;
20+
21+
/**
22+
* @typedef {{
23+
* original: string,
24+
* val: string,
25+
* length: number,
26+
* pos: number,
27+
* typeFilter: number,
28+
* elems: Array<QueryElement>,
29+
* elemName: (string|null),
30+
* args: Array<QueryElement>,
31+
* returned: Array<QueryElement>,
32+
* foundElems: number,
33+
* id: string,
34+
* nameSplit: (string|null),
1535
* }}
1636
*/
1737
var ParsedQuery;

0 commit comments

Comments
 (0)