AsResultLowImplicits

class Object
trait Matchable
class Any
object AsResult.type

Type members

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

Value members

Concrete 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)

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

a Result but throw exceptions if it is not a success

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

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

Givens

Givens

typeclass instance for types which are convertible to Result

typeclass instance for types which are convertible to Result