the enum object holding the allowed values
the value to check
true if the argument is a member of the given enum
the enum object holding the allowed values