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 2f9100a commit 54b2518Copy full SHA for 54b2518
src/subtyping.md
@@ -86,8 +86,13 @@ lifetime, and a type to point to.
86
例えば、 `Vec` は `T` を受け取り `Vec<T>` を返す型コンストラクタです。
87
`&` や `&mut` は 2 つの入力を受け取ります: ライフタイムと、指し示すための型です。
88
89
+<!--
90
A type constructor's *variance* is how the subtyping of its inputs affects the
91
subtyping of its outputs. There are two kinds of variance in Rust:
92
+-->
93
+
94
+型コンストラクタの*変性*は、どのように型コンストラクタの入力の派生型が出力の派生型に
95
+影響するかということです。 Rust では 2 種類の変性があります。
96
97
* F is *variant* over `T` if `T` being a subtype of `U` implies
98
`F<T>` is a subtype of `F<U>` (subtyping "passes through")
0 commit comments