Package

ca.mrvisser

sealerate

Permalink

package sealerate

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

Value Members

  1. macro def collect[T]: Set[T]

    Permalink

    This is identical to values[T], except if there are case class instances, they are simply filtered out of the set rather than throwing a compilation error.

    This is identical to values[T], except if there are case class instances, they are simply filtered out of the set rather than throwing a compilation error.

    T

    The type for which we're going to search for object instances

    returns

    A Set of all known object instances

  2. package internal

    Permalink
  3. macro def values[T]: Set[T]

    Permalink

    Generate a set of all available object instances known for the sealed trait identified by T, throwing a compilation error if there are any case class instances of the trait.

    Generate a set of all available object instances known for the sealed trait identified by T, throwing a compilation error if there are any case class instances of the trait.

    The type T must denote a Class type that is a sealed trait, sealed abstract class, or sealed class. If there are any instances of this sealed class that are not case objects (i.e., there exist case classes), then this will result in a compilation error.

    T

    The type for which we're going to search for object instances

    returns

    A Set of all known object instances

Inherited from AnyRef

Inherited from Any

Ungrouped