File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ captures this through the `Send` and `Sync` traits.
24
24
* ある型を他のスレッドに安全に送信できる場合、その型は Send を実装します。
25
25
* ある型をスレッド間で安全に共有できる場合、その型は Sync を実装します (` &T ` は Send を実装します) 。
26
26
27
+ <!--
27
28
Send and Sync are fundamental to Rust's concurrency story. As such, a
28
29
substantial amount of special tooling exists to make them work right. First and
29
30
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
32
33
methods), correctly implemented simply means that they have the intrinsic
33
34
properties an implementor should have. Incorrectly implementing Send or Sync can
34
35
cause Undefined Behavior.
36
+ -->
37
+
38
+ Send と Sync は Rust の並行性の基本です。したがって、これらが正しく動作するように、
39
+ かなりの量の、特別なツールが存在します。まず真っ先に、これらは[ アンセーフなトレイト] [ unsafe traits ] です。
40
+ これはつまり、これらを実装するのはアンセーフで、他のアンセーフなコードが、これらのトレイトが正しく
41
+ 実装されていると見なすことができます。これらのトレイトは* マーカートレイト*
42
+ (これらのトレイトは、メソッドなどの関連情報を備えていません) ですので、正しく実装することは、
43
+ これらのトレイトが、型を実装するものが持っているべき intrinsic の特性を持っているということを
44
+ 単に意味します。 Send や Sync が正しく実装されていないと、未定義動作を引き起こします。
35
45
36
46
Send and Sync are also automatically derived traits. This means that, unlike
37
47
every other trait, if a type is composed entirely of Send or Sync types, then it
You can’t perform that action at this time.
0 commit comments