When used in a struct module, automatically generates a method to determine whether an object is of that type.