Ok

morphir.sdk.Result.Ok
case class Ok[+E, +A](value: A) extends Result[E, A]

Attributes

Graph
Supertypes
class Result[E, A]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def getOrElse[A1 >: A](fallbackValue: A1): A1
def isErr: Boolean
def isOk: Boolean
def mapError[E1 >: E](fn: E => E1): Result[E1, A]
def withErr[E1 >: E]: Result[E1, A]

Inherited methods

def flatMap[A1, E1 >: E](fn: A => Result[E1, A1]): Result[E1, A1]

Attributes

Inherited from:
Result
def map[A1](fn: A => A1): Result[E, A1]

Attributes

Inherited from:
Result
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def toMaybe: Maybe[A]

Attributes

Inherited from:
Result
def toOption: Option[A]

Attributes

Inherited from:
Result
def withDefault[A1 >: A](fallbackValue: A1): A1

Attributes

Inherited from:
Result