bytemuck_derive::traits

Function generate_checked_bit_pattern_struct

source
fn generate_checked_bit_pattern_struct(
    input_ident: &Ident,
    fields: &Fields,
    attrs: &[Attribute],
    crate_name: &TokenStream,
) -> Result<(TokenStream, TokenStream)>