rustdoc: add support for type filters in arguments and generics
This makes sense, since the search index has the information in it, and it's more useful for function signature searches since a function signature search's item type is, by definition, some type of function (there's more than one, but not very many).
This commit is contained in:
parent
3ff4d56650
commit
e600c0ba0e
15 changed files with 301 additions and 150 deletions
|
@ -23,11 +23,11 @@ const PARSED = [
|
|||
generics: [],
|
||||
},
|
||||
],
|
||||
typeFilter: -1,
|
||||
}],
|
||||
foundElems: 1,
|
||||
original: "R<!>",
|
||||
returned: [],
|
||||
typeFilter: -1,
|
||||
userQuery: "r<!>",
|
||||
error: null,
|
||||
},
|
||||
|
@ -38,11 +38,11 @@ const PARSED = [
|
|||
pathWithoutLast: [],
|
||||
pathLast: "!",
|
||||
generics: [],
|
||||
typeFilter: -1,
|
||||
}],
|
||||
foundElems: 1,
|
||||
original: "!",
|
||||
returned: [],
|
||||
typeFilter: -1,
|
||||
userQuery: "!",
|
||||
error: null,
|
||||
},
|
||||
|
@ -53,11 +53,11 @@ const PARSED = [
|
|||
pathWithoutLast: [],
|
||||
pathLast: "a",
|
||||
generics: [],
|
||||
typeFilter: 14,
|
||||
}],
|
||||
foundElems: 1,
|
||||
original: "a!",
|
||||
returned: [],
|
||||
typeFilter: 14,
|
||||
userQuery: "a!",
|
||||
error: null,
|
||||
},
|
||||
|
@ -66,7 +66,6 @@ const PARSED = [
|
|||
foundElems: 0,
|
||||
original: "a!::b",
|
||||
returned: [],
|
||||
typeFilter: -1,
|
||||
userQuery: "a!::b",
|
||||
error: "Cannot have associated items in macros",
|
||||
},
|
||||
|
@ -77,11 +76,11 @@ const PARSED = [
|
|||
pathWithoutLast: ["!"],
|
||||
pathLast: "b",
|
||||
generics: [],
|
||||
typeFilter: -1,
|
||||
}],
|
||||
foundElems: 1,
|
||||
original: "!::b",
|
||||
returned: [],
|
||||
typeFilter: -1,
|
||||
userQuery: "!::b",
|
||||
error: null,
|
||||
},
|
||||
|
@ -90,7 +89,6 @@ const PARSED = [
|
|||
foundElems: 0,
|
||||
original: "a!::b!",
|
||||
returned: [],
|
||||
typeFilter: -1,
|
||||
userQuery: "a!::b!",
|
||||
error: "Cannot have associated items in macros",
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue