Test object inheritance
is_enum(x) is_numeric_enum(x) is_generic_enum(x)
x | object to check |
---|
TRUE if the object inherits from the enum class, and FALSE if it does not.
TRUE if the object inherits from the numeric enum class, and FALSE if it does not.
TRUE if the object inherits from the generic enum class, and FALSE if it does not.