Sets the value of an enum object. The new value must be one of the valid enum values.
Usage
# S3 method for class 'enum'
x$name <- value
Arguments
- x
An enum object
- name
The name of the field to set (should be "value")
- value
The new value to set
Value
The updated enum object