bytemuck_derive::traits

Function generate_assert_no_padding

source
fn generate_assert_no_padding(input: &DeriveInput) -> Result<TokenStream>
Expand description

Check that a struct has no padding by asserting that the size of the struct is equal to the sum of the size of it’s fields