EnumCompanion

abstract class EnumCompanion[A <: scala.reflect.Enum] extends Able.~[A]

EnumCompanion is a type to be extended by all enum companion objects to integrate them with Scalqa containers.

This is a recommended step, which might not be nessesasy in simple cases

 enum Direction:
   case Up,Down,Left,Right

 object Direction extends EnumCompanion[Direction]

 Direction.~.tp

 // Output
 ~(Up, Down, Left, Right)
Source
EnumCompanion.scala
trait Able.~[A]
class java.lang.Object
trait scala.Matchable
class Any
class Fx.JavaFx.Enum.Companion[Fx.JavaFx.Enum.Companion.ENUM, Fx.JavaFx.Enum.Companion.J_ENUM]
object Fx.HPos
object Fx.Pos
object Fx.Side
object Fx.VPos
object Week.Day

Def

@scala.annotation.targetName("stream")
inline def ~: ~[A]

Stream

Stream

Enum values as a stream, ordered by ordinal property

Source
EnumCompanion.scala
@scala.annotation.targetName("pack") @scala.annotation.threadUnsafe
lazy val ><: ><[A]

Packed

Packed

Packed values

Source
EnumCompanion.scala
protected def values: Array[A]