Skip to content

Commit 54b2518

Browse files
committed
Translate a paragraph
1 parent 2f9100a commit 54b2518

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/subtyping.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,13 @@ lifetime, and a type to point to.
8686
例えば、 `Vec``T` を受け取り `Vec<T>` を返す型コンストラクタです。
8787
`&``&mut` は 2 つの入力を受け取ります: ライフタイムと、指し示すための型です。
8888

89+
<!--
8990
A type constructor's *variance* is how the subtyping of its inputs affects the
9091
subtyping of its outputs. There are two kinds of variance in Rust:
92+
-->
93+
94+
型コンストラクタの*変性*は、どのように型コンストラクタの入力の派生型が出力の派生型に
95+
影響するかということです。 Rust では 2 種類の変性があります。
9196

9297
* F is *variant* over `T` if `T` being a subtype of `U` implies
9398
`F<T>` is a subtype of `F<U>` (subtyping "passes through")

0 commit comments

Comments
 (0)