enum_type: Enum Type

Description Usage Arguments Value Examples

View source: R/check.R

Description

Return the enumerated type name of an object, if a name was provided.

Usage

1

Arguments

x

Enum object

...

objects passed to methods

Value

character with the name of the enumerated type or NULL

Examples

1
2
x <- Result$Ok("hello world!")
enum_type(x)  # "Result"

matchr documentation built on Sept. 9, 2021, 5:07 p.m.

Related to enum_type in matchr...