AsResult

Companion:
class
class Object
trait Matchable
class Any

Type members

Classlikes

object booleanAsResult extends AsResult[Boolean]

implicit typeclass instance to create results from Booleans

implicit typeclass instance to create results from Booleans

Inherited classlikes

object given_AsResult_Unit extends AsResult[Unit]

typeclass instance for types which are convertible to Result

typeclass instance for types which are convertible to Result

Inherited from:
AsResultLowImplicits

Value members

Inherited methods

def apply[R](r: => R)(using evidence$2: AsResult[R]): Result

nicer syntax to use the AsResult syntax: AsResult(r)

nicer syntax to use the AsResult syntax: AsResult(r)

Inherited from:
AsResultLowImplicits
def effectively[R](r: => R)(using evidence$3: AsResult[R]): Result
Returns:

a Result but throw exceptions if it is not a success

Inherited from:
AsResultLowImplicits
def safely[R](r: => R)(using evidence$4: AsResult[R]): Result
Returns:

a Result always, even when there are specs2 exceptions (when using ThrownExpectations)

Inherited from:
AsResultLowImplicits

Givens

Givens

given asResult[R](using convert: R => Result): asResult[R]

typeclass instance for types which are convertible to Result

typeclass instance for types which are convertible to Result

implicit typeclass instance to create results from Booleans

implicit typeclass instance to create results from Booleans

given resultSeq[R](using evidence$1: AsResult[R]): resultSeq[R]

typeclass instance for lists of results

typeclass instance for lists of results

Inherited givens

typeclass instance for types which are convertible to Result

typeclass instance for types which are convertible to Result

Inherited from:
AsResultLowImplicits