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
Rust has a way to specify the default value of an enum... Use this.
Currently, a LogicState enum has to default to the first item in the enum. This seems an unnecessary constraint. Better to require that the underlying type implement Default and then allow the user to specify the default state with #[default]. Note that this likely means either more non-zero-init DFFs, or reordering enum assignments.
The text was updated successfully, but these errors were encountered:
Rust has a way to specify the default value of an enum... Use this.
Currently, a
LogicState
enum has to default to the first item in the enum. This seems an unnecessary constraint. Better to require that the underlying type implementDefault
and then allow the user to specify the default state with#[default]
. Note that this likely means either more non-zero-init DFFs, or reordering enum assignments.The text was updated successfully, but these errors were encountered: