Skip to content

Commit 157b328

Browse files
committed
Translate a paragraph
Not sure how to translate "(outlives)".
1 parent 8fca1ec commit 157b328

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
@@ -4,10 +4,17 @@
44

55
# 派生型と変性
66

7+
<!--
78
Although Rust doesn't have any notion of structural inheritance, it *does*
89
include subtyping. In Rust, subtyping derives entirely from lifetimes. Since
910
lifetimes are scopes, we can partially order them based on the *contains*
1011
(outlives) relationship. We can even express this as a generic bound.
12+
-->
13+
14+
Rust には構造の継承の概念はありませんが、派生型の概念は*あります*
15+
Rust では、派生型は完全にライフタイムに由来します。ライフタイムはスコープですので、
16+
包含関係によって部分的にライフタイムを定めることが出来ます。
17+
ジェネリック境界として表現することも可能です。
1118

1219
Subtyping on lifetimes is in terms of that relationship: if `'a: 'b` ("a contains
1320
b" or "a outlives b"), then `'a` is a subtype of `'b`. This is a large source of

0 commit comments

Comments
 (0)