File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -18,27 +18,21 @@ intrinsic properties of the type. These classifications, often called
18
18
They cannot be implemented by user code, but are instead implemented
19
19
by the compiler automatically for the types to which they apply.
20
20
21
- The 2 kinds are
22
-
23
- * Send - owned types and types containing owned types. These types
24
- may be transferred across task boundaries.
25
-
26
- * Freeze - types that are deeply immutable.
27
-
28
21
*/
29
22
30
- #[ allow( missing_doc) ] ;
31
-
23
+ /// Types able to be transferred across task boundaries.
32
24
#[ lang="send" ]
33
25
pub trait Send {
34
26
// empty.
35
27
}
36
28
29
+ /// Types that are either immutable or have inherited mutability.
37
30
#[ lang="freeze" ]
38
31
pub trait Freeze {
39
32
// empty.
40
33
}
41
34
35
+ /// Types with a constant size known at compile-time.
42
36
#[ lang="sized" ]
43
37
pub trait Sized {
44
38
// Empty.
You can’t perform that action at this time.
0 commit comments