inkwell
inkwell copied to clipboard
Create new fine-grained enum for `build_cast`
Is your feature request related to a problem? Please describe.
When running build_cast, I'm unsure of what options are available.
Describe the solution you'd like
build_cast should accept an enum that is a subset of InstructionOpcode, such subset should only contain valid options for build_cast.
Describe possible drawbacks to your solution Might be painful to maintain, especially between different versions.
Maybe this can be done with a macro on InstructionOpcode that adds the variants in, say, CastOpcode?