Rust 语言入门 Introduction to Rust

内存对齐 Memory Alignment

repr(u8)

repr(c)

repr(packed)

使用这种对齐方式非常受限.

repr(align(N))