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.
73
73
74
74
変性はちょっと複雑です。
75
75
76
+ <!--
76
77
Variance is a property that *type constructors* have with respect to their
77
78
arguments. A type constructor in Rust is a generic type with unbound arguments.
78
79
For instance `Vec` is a type constructor that takes a `T` and returns a
79
80
`Vec<T>`. `&` and `&mut` are type constructors that take two inputs: a
80
81
lifetime, and a type to point to.
82
+ -->
83
+
84
+ 変性は、* 型コンストラクタ* がその引数に関して持つ性質です。
85
+ Rust において型コンストラクタは、無制限の引数を持つジェネリックな型です。
86
+ 例えば、 ` Vec ` は ` T ` を受け取り ` Vec<T> ` を返す型コンストラクタです。
87
+ ` & ` や ` &mut ` は 2 つの入力を受け取ります: ライフタイムと、指し示すための型です。
81
88
82
89
A type constructor's * variance* is how the subtyping of its inputs affects the
83
90
subtyping of its outputs. There are two kinds of variance in Rust:
You can’t perform that action at this time.
0 commit comments