Skip to content

Commit 2f9100a

Browse files
committed
Translate a paragraph
1 parent 6799751 commit 2f9100a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/subtyping.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,18 @@ Variance is where things get a bit complicated.
7373

7474
変性はちょっと複雑です。
7575

76+
<!--
7677
Variance is a property that *type constructors* have with respect to their
7778
arguments. A type constructor in Rust is a generic type with unbound arguments.
7879
For 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
8081
lifetime, and a type to point to.
82+
-->
83+
84+
変性は、*型コンストラクタ*がその引数に関して持つ性質です。
85+
Rust において型コンストラクタは、無制限の引数を持つジェネリックな型です。
86+
例えば、 `Vec``T` を受け取り `Vec<T>` を返す型コンストラクタです。
87+
`&``&mut` は 2 つの入力を受け取ります: ライフタイムと、指し示すための型です。
8188

8289
A type constructor's *variance* is how the subtyping of its inputs affects the
8390
subtyping of its outputs. There are two kinds of variance in Rust:

0 commit comments

Comments
 (0)