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
We can support enums as State types by storing a byte to mark the variant at the root key, and using that to instantiate the enum variant (each variant's fields must implement State).
The only questions are how to map variant fields to keys (we want to share data between variant transitions without copying) and how to transition between variants (maybe the author can create transitions with impl From<VariantContentsA> for VariantContentsB, although we will have to somehow delete the data for dropped fields).
The text was updated successfully, but these errors were encountered:
We can support enums as
State
types by storing a byte to mark the variant at the root key, and using that to instantiate the enum variant (each variant's fields must implementState
).The only questions are how to map variant fields to keys (we want to share data between variant transitions without copying) and how to transition between variants (maybe the author can create transitions with
impl From<VariantContentsA> for VariantContentsB
, although we will have to somehow delete the data for dropped fields).The text was updated successfully, but these errors were encountered: