-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Not sure if the name makes the most sense, but i'd like to be able to associate data with enum variants and work with them like you can here
Example usage:
const Message = Enum.define('Message', {
constants: {
Move: { x: 0, y: 0 },
},
});
let x = Message.Move(3, 4);Additional reading: https://doc.rust-lang.org/book/enums.html
Metadata
Metadata
Assignees
Labels
No labels