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
fn generate_fields_are_trait(
input: &DeriveInput,
enum_variant: Option<&Variant>,
trait_: Path,
) -> Result<TokenStream>
Check that all fields implement a given trait