AsResult

Companion
class
class Object
trait Matchable
class Any

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 val convert: R => Result): AsResult[R]

typeclass instance for types which are convertible to Result

typeclass instance for types which are convertible to Result

given booleanAsResult: AsResult[Boolean]

implicit typeclass instance to create results from Booleans

implicit typeclass instance to create results from Booleans

given resultSeq[R]: AsResult[List[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