bytemuck_derive::traits

Function get_enum_variants

source
fn get_enum_variants<'a>(
    input: &'a DeriveInput,
) -> Result<impl Iterator<Item = &'a Variant> + Clone + 'a>