We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
It's not correct to bind a union in Rust as an array of bytes. The alignment of a byte array is always 1.
union
struct Foo { xs: [u8, ..64] } fn main() { println!("{}", std::mem::min_align_of::<Foo>()) }
x86 allows unaligned memory accesses, but other architectures are not as forgiving.