GenFractionalPoly

Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[A](gen: Gen[Any, A], num: Fractional[A]): GenFractionalPoly

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

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

def double(implicit trace: Trace): GenFractionalPoly

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

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

def float(implicit trace: Trace): GenFractionalPoly

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

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

def genFractionalPoly(implicit trace: Trace): Gen[Any, GenFractionalPoly]

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

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