|
1 |
| -# Values and Representation |
| 1 | +# Values and representation |
2 | 2 |
|
3 | 3 | r[value]
|
4 | 4 |
|
@@ -110,17 +110,17 @@ A thin reference to `T` consists of a non-null, well aligned address, and proven
|
110 | 110 | > [!NOTE]
|
111 | 111 | > This is true for both shared and mutable references. There are additional constraints enforced by the aliasing model.
|
112 | 112 |
|
113 |
| -r[value.pointer.fat] |
114 |
| -A fat pointer or reference consists of a data pointer or reference, and a pointee-specific metadata value. |
| 113 | +r[value.pointer.wide] |
| 114 | +A wide pointer or reference consists of a data pointer or reference, and a pointee-specific metadata value. |
115 | 115 |
|
116 |
| -r[value.pointer.fat-reference] |
117 |
| -The data pointer of a fat reference has a non-null address, well aligned for `align_of_val(self)`, and with provenance for `size_of_val(self)` bytes. |
| 116 | +r[value.pointer.wide-reference] |
| 117 | +The data pointer of a wide reference has a non-null address, well aligned for `align_of_val(self)`, and with provenance for `size_of_val(self)` bytes. |
118 | 118 |
|
119 |
| -r[value.pointer.fat-representation] |
120 |
| -A fat pointer or reference is represented the same as `struct FatPointer<M>{data: *mut (), metadata: M}` where `M` is the pointee metadata type, and the `data` and `metadata` fields are the corresponding parts of the pointer. |
| 119 | +r[value.pointer.wide-representation] |
| 120 | +A wide pointer or reference is represented the same as `struct WidePointer<M>{data: *mut (), metadata: M}` where `M` is the pointee metadata type, and the `data` and `metadata` fields are the corresponding parts of the pointer. |
121 | 121 |
|
122 | 122 | > [!NOTE]
|
123 |
| -> The `FatPointer` struct has no guarantees about layout, and has the default representation. |
| 123 | +> The `WidePointer` struct has no guarantees about layout, and has the default representation. |
124 | 124 |
|
125 | 125 | r[value.pointer.fn]
|
126 | 126 | A value of a function pointer type consists of an non-null address. A function pointer value is represented the same as an address represented as an unsigned integer type with the same width as the function pointer.
|
|
0 commit comments