mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-01-05 16:10:31 +02:00
Update sizes.md (#775)
This commit is contained in:
parent
4b7b5d83ea
commit
07a7380b13
@ -58,7 +58,7 @@ Key Points:
|
||||
* `dbg_size!(&i32)`: size 8 bytes, align: 8 bytes (on a 64-bit machine),
|
||||
* `dbg_size!(Option<&i32>)`: size 8 bytes, align: 8 bytes (null pointer optimization, see below).
|
||||
|
||||
* Niche optimization: Rust will merge use unused bit patterns for the enum
|
||||
* Niche optimization: Rust will merge unused bit patterns for the enum
|
||||
discriminant.
|
||||
|
||||
* Null pointer optimization: For [some
|
||||
|
Loading…
Reference in New Issue
Block a user