QuestionOperatorSupport

quest.QuestionOperatorSupport
See theQuestionOperatorSupport companion object

Helper trait for implementing the Question-Operator syntax for different types.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Type members

Types

type Failure

Failure Type.

Failure Type.

Attributes

type Success

Success type.

Success type.

Attributes

Value members

Abstract methods

def decodeSuccess[X <: T](result: X): Option[Success]

Split some result into sucess or failure.

Split some result into sucess or failure.

Attributes

Concrete methods

inline def earlyExit[X <: T](value: X): Nothing

Issue early exit.

Issue early exit.

Attributes

inline def getOrEarlyExit[X <: T](value: X): Success

Run f and returns successful values or throws EarlyExit with full value

Run f and returns successful values or throws EarlyExit with full value

Attributes