We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea1110b commit 13b5af8Copy full SHA for 13b5af8
src/types/pointer.md
@@ -56,7 +56,7 @@ Despite pointers and references being similar to `usize`s in the machine code em
56
the semantics of transmuting a reference or pointer type to a non-pointer type is currently undecided.
57
Thus, it may not be valid to transmute a pointer or reference type, `P`, to a `[u8; size_of::<P>()]`.
58
59
-For thin raw pointers (i.e., for `<T as Pointee>::Metadata == ()` and `P = *const T` or `P = *mut T`),
+For thin raw pointers (i.e., for `P = *const T` or `P = *mut T` for `T: Sized`),
60
the inverse direction (transmuting from an integer or array of integers to `P`) is always valid.
61
However, the pointer produced via such a transmutation may not be dereferenced (not even if `T` has size zero).
62
0 commit comments