UnitWheneverAsserting

abstract class UnitWheneverAsserting

Class holding lowest priority WheneverAsserting implicit, which enables Whenever expressions that have result type Unit.

class Object
trait Matchable
class Any

Implicits

Implicits

implicit def assertingNatureOfT[T]: WheneverAsserting[T] { type Result = Unit; }

Provides support of WheneverAsserting for Unit. Return Unit when the check succeeds, but throw DiscardedEvaluationException when check fails.

Provides support of WheneverAsserting for Unit. Return Unit when the check succeeds, but throw DiscardedEvaluationException when check fails.