We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4c1859 commit 9471a9aCopy full SHA for 9471a9a
reference/src/layout/pointers.md
@@ -31,6 +31,10 @@ and are at least one word.
31
32
The layouts of `&T`, `&mut T` and `*T` are the same.
33
34
+If `T` is sized, references and pointers to `T` have a size and alignment of one
35
+word and have therefore the same layout as C pointers - they can be used in C FFI
36
+where pointers are expected.
37
+
38
We do not make any guarantees about the layout of
39
multi-trait objects `&(dyn T + U)` or references to other dynamically sized types,
40
other than that they are at least word-aligned, and have size at least one word.
0 commit comments