Test object inheritance

is_enum(x)

is_numeric_enum(x)

is_generic_enum(x)

Arguments

x

object to check

Value

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.