pub const fn assert_repr_c_layout(
actual_offsets: &[usize],
actual_size: usize,
fields: &[(usize, usize)],
)Expand description
Asserts that a repr(C) layout matches declared (size, alignment) pairs.
ยงPanics
Panics when the actual layout differs from the declared C ABI layout.