File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -73,11 +73,18 @@ Variance is where things get a bit complicated.
7373
7474変性はちょっと複雑です。
7575
76+ <!--
7677Variance is a property that *type constructors* have with respect to their
7778arguments. A type constructor in Rust is a generic type with unbound arguments.
7879For instance `Vec` is a type constructor that takes a `T` and returns a
7980`Vec<T>`. `&` and `&mut` are type constructors that take two inputs: a
8081lifetime, and a type to point to.
82+ -->
83+
84+ 変性は、* 型コンストラクタ* がその引数に関して持つ性質です。
85+ Rust において型コンストラクタは、無制限の引数を持つジェネリックな型です。
86+ 例えば、 ` Vec ` は ` T ` を受け取り ` Vec<T> ` を返す型コンストラクタです。
87+ ` & ` や ` &mut ` は 2 つの入力を受け取ります: ライフタイムと、指し示すための型です。
8188
8289A type constructor's * variance* is how the subtyping of its inputs affects the
8390subtyping of its outputs. There are two kinds of variance in Rust:
You can’t perform that action at this time.
0 commit comments