ResultImplicits

Companion
class
trait Results
class Object
trait Matchable
class Any

Type members

Inherited classlikes

Value members

Inherited methods

def negate(r: Result): Result
Inherited from
Results
def negateWhen(condition: Boolean)(r: Result): Result
Inherited from
Results
def toResult(b: Boolean): Result
Inherited from
Results

Givens

Inherited givens

given given_Conversion_Boolean_Result: Conversion[Boolean, Result]

implicit definition to accept any boolean value as a Result This avoids writing b must beTrue

implicit definition to accept any boolean value as a Result This avoids writing b must beTrue

Inherited from
Results

Extensions

Inherited extensions

extension (r1: => R1)
def <==>[R1, R2](r2: => R2)(using `evidence$5`: AsResult[R1], `evidence$6`: AsResult[R2]): Result

Two results r1 and r2 are equivalent if r1.isSuccess == r2.isSuccess

Two results r1 and r2 are equivalent if r1.isSuccess == r2.isSuccess

Inherited from
ResultImplicits
extension (t: T => R)
def applied[T, R](value: T)(using `evidence$1`: AsResult[R]): Result

apply the function to the value and convert to a Result

apply the function to the value and convert to a Result

Inherited from
ResultImplicits
extension (t: T => R)
def atLeastOnce[T, R](seq: Iterable[T])(using `evidence$4`: AsResult[R]): Result
Returns

success if at least one result is a success

Inherited from
ResultImplicits
def forall[T, R](seq: Iterable[T])(using `evidence$2`: AsResult[R]): Result
Returns

the "and" of all results, stopping after the first failure

Inherited from
ResultImplicits
def foreach[T, R](seq: Iterable[T])(using `evidence$3`: AsResult[R]): Result
Returns

the aggregation of all results

Inherited from
ResultImplicits

Implicits

Inherited implicits

implicit def combineBoolean(b: => Boolean): ResultLogicalCombinator