enum_type {matchr} | R Documentation |
Return the enumerated type name of an object, if a name was provided.
enum_type(x, ...)
x |
Enum object |
... |
objects passed to methods |
character with the name of the enumerated type or NULL
x <- Result$Ok("hello world!")
enum_type(x) # "Result"