Skip to content

Commit a5244dd

Browse files
authored
Add Send and Sync traits to the reference
Fixes #36859
1 parent c88ed2a commit a5244dd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/doc/reference.md

+10
Original file line numberDiff line numberDiff line change
@@ -3959,6 +3959,16 @@ the top-level type for the implementation of the called method. If no such metho
39593959
found, `.deref()` is called and the compiler continues to search for the method
39603960
implementation in the returned type `U`.
39613961

3962+
## The `Send` trait
3963+
3964+
The `Send` trait indicates that a value of this type is safe to send from one
3965+
thread to another.
3966+
3967+
## The 'Sync' trait
3968+
3969+
The 'Sync' trait indicates that a value of this type is safe to share between
3970+
multiple threads.
3971+
39623972
# Memory model
39633973

39643974
A Rust program's memory consists of a static set of *items* and a *heap*.

0 commit comments

Comments
 (0)