Update src/other-reprs.md

Co-authored-by: Yuki Okushi <jtitor@2k36.org>
pull/329/head
Nicolas Abram 4 years ago committed by GitHub
parent cd999a7ea9
commit da24b086ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -63,7 +63,7 @@ whole struct is guaranteed to be the same as that one field.
The goal is to make it possible to transmute between the single field and the
struct. An example of that is [`UnsafeCell`], which can be transmuted into
the type it wraps ([`UnsafeCell`] also uses the unstable [no_niche][no-niche-pull],
so it's ABI is not actually guaranteed to be the same when nested in other types).
so its ABI is not actually guaranteed to be the same when nested in other types).
Also, passing the struct through FFI where the inner field type is expected on
the other side is guaranteed to work. In particular, this is necessary for `struct

Loading…
Cancel
Save