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