Showing content from https://rust-lang.github.io/unsafe-code-guidelines/validity/unions.html below:
Unions - Unsafe Code Guidelines Reference
Unions - Unsafe Code Guidelines Reference
- 1. Introduction
- 2. Glossary
- 3. Data layout
-
- 3.1. Structs and tuples
- 3.2. Scalars
- 3.3. Enums
- 3.4. Unions
- 3.5. Pointers
- 3.6. Function pointers
- 3.7. Arrays and Slices
- 3.8. Packed SIMD vectors
- 4. Validity
-
- 4.1. Unions
- 4.2. Function Pointers
- 5. Optimizations
-
- 5.1. Return value optimization
Unsafe Code Guidelines Reference
Validity of unions
This page has been archived
It did not actually reflect current language guarantees and caused frequent confusion.
The old content can be accessed on GitHub.
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4