Methods for Enums
In the previous sections, we had impl
blocks set up for the Person
struct
. You’re just as easily able to write an impl
for an enum
:
In the previous sections, we had impl
blocks set up for the Person
struct
. You’re just as easily able to write an impl
for an enum
: