We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afee241 commit 6ce5327Copy full SHA for 6ce5327
src/doc/rustdoc/src/how-to-read-rustdoc.md
@@ -94,6 +94,17 @@ can be matched with the following queries:
94
* `trait:Iterator<primitive:u32> -> primitive:usize`
95
* `Iterator -> usize`
96
97
+Generics and function parameters are order-agnostic, but sensitive to nesting
98
+and number of matches. For example, a function with the signature
99
+`fn read_all(&mut self: impl Read) -> Result<Vec<u8>, Error>`
100
+will match these queries:
101
+
102
+* `Read -> Result<Vec<u8>, Error>`
103
+* `Read -> Result<Error, Vec>`
104
+* `Read -> Result<Vec<u8>>`
105
106
+But it *does not* match `Result<Vec, u8>` or `Result<u8<Vec>>`.
107
108
### Changing displayed theme
109
110
You can change the displayed theme by opening the settings menu (the gear
0 commit comments