access swift enum case outside of switch?

(The fact that they have the same type of associated value and therefore feels redundant should be ignored)

Now I want to be able to equate pets. I could write:

extension Pet:Equatable { }

func == (a:Pet, b:Pet) -> Bool {
return a.name == b.name
}

But this will allow a cat named "Spots" to be equal to a dog named "Spots". This I don't want. Is there an easy way to access the case of an enum instance? We usually do them in switch statements, but in this case, I wanted something more direct (one line), I might need to use it in a future Comparable extension after all.