News for hackers. Stuff that matters.
Re:What's in the Box? by ziml77 on Monday April 19, 2021 @05:22PM (#26868114)
And to add onto that, you can also use a Rust enum like a traditional enum:

    enum Foo {
        OptionA,
        OptionB,
        OptionC,
    }

    enum Bar {
        OptionA = 1,
        OptionB = 2,
        OptionC = 4,
    }

There are no comments on this comment yet.