Skip to main content

can_generate_enum_conversion

Function can_generate_enum_conversion 

Source
pub fn can_generate_enum_conversion(enum_def: &EnumDef) -> bool
Expand description

Check if an enum can have From/Into safely generated (both directions). All enums are allowed — data variants use Default::default() for non-simple fields in the binding→core direction.