We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c76c6b commit afb11c3Copy full SHA for afb11c3
reference/src/layout/pointers.md
@@ -51,6 +51,8 @@ struct DynObject {
51
}
52
```
53
54
+> **note**: In the layout equivalence of `&dyn mut Trait` the field `data` is of the type `*mut u8`.
55
+
56
The layout of `&[T]` is the same as that of:
57
```rust
58
#[repr(C)]
@@ -60,4 +62,7 @@ struct Slice<T> {
60
62
61
63
64
-The layout of `&str` is the same as that of `&[u8]`.
65
+> **note**: In the layout equivalence of `&mut [T]` the field `ptr` is of the type `*mut T`.
66
67
+The layout of `&str` is the same as that of `&[u8]`, and the layout of `&mut str` is
68
+the same as that of `&mut [u8]`.
0 commit comments