bytemuck_derive::traits

Function generate_fields_are_trait

source
fn generate_fields_are_trait(
    input: &DeriveInput,
    enum_variant: Option<&Variant>,
    trait_: Path,
) -> Result<TokenStream>
Expand description

Check that all fields implement a given trait