@@ -38,13 +38,13 @@ mutability aren't placed in memory marked as read only.
38
38
## ` PhantomData<T> `
39
39
40
40
[ ` std::marker::PhantomData<T> ` ] is a zero-sized, minimum alignment, type that
41
- is considered to own a ` T ` for the purposes of [ variance] , [ drop check] and
41
+ is considered to own a ` T ` for the purposes of [ variance] , [ drop check] , and
42
42
[ auto traits] ( #auto-traits ) .
43
43
44
44
## Operator Traits
45
45
46
46
The traits in [ ` std::ops ` ] and [ ` std::cmp ` ] are used to overload [ operators] ,
47
- [ indexing expressions] and [ call expressions] .
47
+ [ indexing expressions] , and [ call expressions] .
48
48
49
49
## ` Deref ` and ` DerefMut `
50
50
@@ -64,7 +64,7 @@ whose type implements `Copy` are copied rather than moved upon assignment.
64
64
fields that are not ` Copy ` . ` Copy ` is implemented by the compiler for
65
65
66
66
* [ Numeric types]
67
- * ` char ` , ` bool ` and [ ` ! ` ]
67
+ * ` char ` , ` bool ` , and [ ` ! ` ]
68
68
* [ Tuples] of ` Copy ` types
69
69
* [ Arrays] of ` Copy ` types
70
70
* [ Shared references]
@@ -94,17 +94,17 @@ immutable [`static` items].
94
94
95
95
## Auto traits
96
96
97
- The [ ` Send ` ] , [ ` Sync ` ] , [ ` UnwindSafe ` ] and [ ` RefUnwindSafe ` ] traits are _ auto
97
+ The [ ` Send ` ] , [ ` Sync ` ] , [ ` UnwindSafe ` ] , and [ ` RefUnwindSafe ` ] traits are _ auto
98
98
traits_ . Auto traits have special properties.
99
99
100
100
If no explicit implementation or negative implementation is written out for an
101
101
auto trait for a given type, then the compiler implements it automatically
102
102
according to the following rules:
103
103
104
- * ` &T ` , ` &mut T ` , ` *const T ` , ` *mut T ` , ` [T; n] ` and ` [T] ` implement the trait
104
+ * ` &T ` , ` &mut T ` , ` *const T ` , ` *mut T ` , ` [T; n] ` , and ` [T] ` implement the trait
105
105
if ` T ` does.
106
106
* Function item types and function pointers automatically implement the trait.
107
- * Structs, enums, unions and tuples implement the trait if all of their fields
107
+ * Structs, enums, unions, and tuples implement the trait if all of their fields
108
108
do.
109
109
* Closures implement the trait if the types of all of their captures do. A
110
110
closure that captures a ` T ` by shared reference and a ` U ` by value implements
0 commit comments