Result

merkle.Result
See theResult companion object
sealed trait Result[+A] extends Product, Serializable

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class Fail
class Ok[A]

Members list

Value members

Concrete methods

def flatMap[B](f: A => Result[B]): Result[B]
def fold[B](ok: A => B, err: Err => B): B
def getOrThrow(): A
def isErr: Boolean
def map[B](f: A => B): Result[B]
def toEither: Either[Err, A]
def toOption: Option[A]

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Inherited and Abstract methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product