GenNumericPoly

Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[A](gen: Gen[Any, A], num: Numeric[A]): GenNumericPoly

Constructs an instance of GenIntegralPoly using the specified Gen and Numeric instances, existentially hiding the underlying type.

Constructs an instance of GenIntegralPoly using the specified Gen and Numeric instances, existentially hiding the underlying type.

def byte(implicit trace: Trace): GenNumericPoly

Provides evidence that instances of Gen and Numeric exist for bytes.

Provides evidence that instances of Gen and Numeric exist for bytes.

def char(implicit trace: Trace): GenNumericPoly

Provides evidence that instances of Gen and Numeric exist for characters.

Provides evidence that instances of Gen and Numeric exist for characters.

def double(implicit trace: Trace): GenNumericPoly

Provides evidence that instances of Gen and Numeric exist for doubles.

Provides evidence that instances of Gen and Numeric exist for doubles.

def float(implicit trace: Trace): GenNumericPoly

Provides evidence that instances of Gen and Numeric exist for floats.

Provides evidence that instances of Gen and Numeric exist for floats.

def genNumericPoly(implicit trace: Trace): Gen[Any, GenNumericPoly]

A generator of polymorphic values constrainted to have a Numeric instance.

A generator of polymorphic values constrainted to have a Numeric instance.

def int(implicit trace: Trace): GenNumericPoly

Provides evidence that instances of Gen and Numeric exist for integers.

Provides evidence that instances of Gen and Numeric exist for integers.

def long(implicit trace: Trace): GenNumericPoly

Provides evidence that instances of Gen and Numeric exist for longs.

Provides evidence that instances of Gen and Numeric exist for longs.

def short(implicit trace: Trace): GenNumericPoly

Provides evidence that instances of Gen and Numeric exist for shorts.

Provides evidence that instances of Gen and Numeric exist for shorts.