macrame.enums
This trait provides the Int/Enum conversions from AsInt and FromInt. As with those traits you must extend the companion object of the enumeration.
Int
Enum
AsInt
FromInt
@enum class Color { Red Blue Yellow } object Color extends IntConverters[Color]
This trait provides the
Int
/Enum
conversions fromAsInt
andFromInt
. As with those traits you must extend the companion object of the enumeration.