4 ms·
You can lay out your types exactly how you want in Rust, just by using the `#[repr(C)]` or `#[repr(packed)]` attributes to guarantee an ordering of the fields.
by YatoRust 7y ago
You can lay out your types exactly how you want in Rust, just by using the `#[repr(C)]` or `#[repr(packed)]` attributes to guarantee an ordering of the fields. So,
> rust might not give you great insight into how it lays things out
Is not true, and this is one of the first things you will learn when you try any sort of FFI. So
> (or it's not as well known or talked about...)
Is not true.