-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
I would like to use enums in Config::Input to differentiate different possible inputs.
Config::Input is requiring on Pod, which has a lot of constraints, main one is that any bit patterns should be correct, making most enum potentially unfit.
The trait Pod has been split in different traits in this PR: Lokathor/bytemuck#91 ; If I'm not mistaken, ideally CheckedBitPattern should be enough.
This should enable us to have enums within Config::Input.
Somewhat related issue: Lokathor/bytemuck#84
As noted #41 (comment), I think we're dependent on bytemuck to support more than fieldless enums.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request