Skip to content

Commit 78a980f

Browse files
committed
Translate a paragraph
1 parent 6398883 commit 78a980f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/send-and-sync.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ captures this through the `Send` and `Sync` traits.
2424
* ある型を他のスレッドに安全に送信できる場合、その型は Send を実装します。
2525
* ある型をスレッド間で安全に共有できる場合、その型は Sync を実装します (`&T` は Send を実装します) 。
2626

27+
<!--
2728
Send and Sync are fundamental to Rust's concurrency story. As such, a
2829
substantial amount of special tooling exists to make them work right. First and
2930
foremost, they're [unsafe traits]. This means that they are unsafe to
@@ -32,6 +33,15 @@ implemented. Since they're *marker traits* (they have no associated items like
3233
methods), correctly implemented simply means that they have the intrinsic
3334
properties an implementor should have. Incorrectly implementing Send or Sync can
3435
cause Undefined Behavior.
36+
-->
37+
38+
Send と Sync は Rust の並行性の基本です。したがって、これらが正しく動作するように、
39+
かなりの量の、特別なツールが存在します。まず真っ先に、これらは[アンセーフなトレイト][unsafe traits]です。
40+
これはつまり、これらを実装するのはアンセーフで、他のアンセーフなコードが、これらのトレイトが正しく
41+
実装されていると見なすことができます。これらのトレイトは*マーカートレイト*
42+
(これらのトレイトは、メソッドなどの関連情報を備えていません) ですので、正しく実装することは、
43+
これらのトレイトが、型を実装するものが持っているべき intrinsic の特性を持っているということを
44+
単に意味します。 Send や Sync が正しく実装されていないと、未定義動作を引き起こします。
3545

3646
Send and Sync are also automatically derived traits. This means that, unlike
3747
every other trait, if a type is composed entirely of Send or Sync types, then it

0 commit comments

Comments
 (0)