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:

Get hands-on with 1000+ tech skills courses.