You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
subenum permits adding derives that aren't permissible on the parent, but it appears there's no way to excludederives that aren't applicable to the child.
In particular, I want to be able to have an enum with a num_enum "catchall" enabling FromPrimitive, but a sub-enum that only contains unit variants:
subenum
permits addingderive
s that aren't permissible on the parent, but it appears there's no way to excludederive
s that aren't applicable to the child.In particular, I want to be able to have an enum with a
num_enum
"catchall" enablingFromPrimitive
, but a sub-enum that only contains unit variants:That is, I want
OnlyUnit
to containBar
andBaz
but notUnknown
, making it non-exhaustive, which prevents derivingnum_enum::FromPrimitive
.The text was updated successfully, but these errors were encountered: