Document transmutability of pointer types

Our rules for `as` casts document which pointer-to-pointer casts are
valid.  For unsized types, this validity is based on the compatibility
of the pointer metadata.  Using this and our layout equivalences, we
can define when a pointer transmute will produce the same pointer
value as would a cast.  Let's define that.
1 file changed
tree: 78566696cb6e48fb59704ae555af921de08fd31f
  1. .cargo/
  2. .github/
  3. dev-guide/
  4. docs/
  5. src/
  6. theme/
  7. tools/
  8. .gitattributes
  9. .gitignore
  10. book.toml
  11. Cargo.lock
  12. Cargo.toml
  13. CONTRIBUTING.md
  14. LICENSE-APACHE
  15. LICENSE-MIT
  16. README.md
  17. reference.md
  18. rust-toolchain.toml
  19. rustfmt.toml
  20. triagebot.toml
README.md

The Rust Language Reference

This document is the primary reference for the Rust programming language.

Contributor docs

See the Reference Developer Guide for information on contributing to the Reference.