o

com.avsystem.commons.misc

SealedUtils

object SealedUtils

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SealedUtils
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. macro def caseObjectsFor[T]: List[T]

    A macro which reifies a list of all case objects of a sealed trait or class T.

    A macro which reifies a list of all case objects of a sealed trait or class T. WARNING: the order of case objects in the resulting list is guaranteed to be consistent with declaration order ONLY for enums extending OrderedEnum. Otherwise, the order may be arbitrary.

    Annotations
    @explicitGenerics()
  2. macro def instancesFor[TC[_], T]: List[TC[_ <: T]]

    Infers a list of instances of given typeclass TC for all non-abstract subtypes of a sealed hierarchy root T.

    Infers a list of instances of given typeclass TC for all non-abstract subtypes of a sealed hierarchy root T.

    Annotations
    @explicitGenerics()