quest

package quest

Members list

Type members

Classlikes

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

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

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

inline def bail[T : Label](value: T): Nothing

Immediately return the quest method returning value.

Immediately return the quest method returning value.

You can also use return, but this doesn't always works in closures.

Must be used inside a quest block

Note: this wraps scala.util.boundary.break

Attributes

inline def quest[T](f: Label[T] ?=> T): T

Start a quest block. Inside the block, the question operator can be used.

Start a quest block. Inside the block, the question operator can be used.

Note: this wraps scala.util.boundary.apply.

Attributes

Extensions

Extensions

extension [T](in: T)
inline def ?[F, S](using support: Aux[T, F, S], label: Label[F]): S

Return the the success value or return the quest-block with the error value.

Return the the success value or return the quest-block with the error value.

Must be used inside a quest block

Attributes