We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcfb3b5 commit ae5ad9bCopy full SHA for ae5ad9b
src/subtyping.md
@@ -188,6 +188,10 @@ some sense "fundamental". All the others can be understood by analogy to the oth
188
* `*const T` follows the logic of `&T`
189
* `*mut T` follows the logic of `&mut T` (or `UnsafeCell<T>`)
190
191
+For more types, see the ["Variance" section][variance-table] on the reference.
192
+
193
+[variance-table]: ../reference/subtyping.html#variance
194
195
> NOTE: the *only* source of contravariance in the language is the arguments to
196
> a function, which is why it really doesn't come up much in practice. Invoking
197
> contravariance involves higher-order programming with function pointers that
0 commit comments