bytemuck_derive::traits

Function get_zero_variant

source
fn get_zero_variant(enum_: &DataEnum) -> Result<Option<&Variant>>
Expand description

Helper function to get the variant with discriminant zero (implicit or explicit).