Jacinle
JacEnum
JacEnum.assert_valid()
JacEnum.choice_names()
JacEnum.choice_objs()
JacEnum.choice_values()
JacEnum.from_string()
JacEnum.is_valid()
JacEnum.type_name()
Classes
A customized enumeration class, adding helper functions for string-based argument parsing.
Class JacEnum
Bases: Enum
Enum
Assert if the value is a valid choice.
Returns the list of the name of all possible choices.
Returns the list of the object of all possible choices.
Returns the list of the value of all possible choices.
value (str | JacEnum) –
Check if the value is a valid choice.
Return the type name of the enum.