Skip to content

Commit

Permalink
Greatly improve rustdoc search
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Apr 18, 2022
1 parent 6fd7e90 commit be41750
Show file tree
Hide file tree
Showing 2 changed files with 602 additions and 394 deletions.
28 changes: 24 additions & 4 deletions src/librustdoc/html/static/js/externs.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,30 @@ function initSearch(searchIndex){}

/**
* @typedef {{
* raw: string,
* query: string,
* type: string,
* id: string,
* isExact: boolean,
* name: string,
* fullPath: Array<string>,
* pathWithoutLast: Array<string>,
* pathLast: string,
* generics: Array<QueryElement>,
* }}
*/
var QueryElement;

/**
* @typedef {{
* original: string,
* val: string,
* length: number,
* pos: number,
* typeFilter: number,
* elems: Array<QueryElement>,
* elemName: (string|null),
* args: Array<QueryElement>,
* returned: Array<QueryElement>,
* foundElems: number,
* id: string,
* nameSplit: (string|null),
* }}
*/
var ParsedQuery;
Expand Down
Loading

0 comments on commit be41750

Please sign in to comment.