Result

mill.api.daemon.Result
See theResult companion object
sealed trait Result[+T]

Represents a computation that either succeeds with a value T or fails. Basically equivalent to Either[String, T], with converters back and forth via Result.toEither or Result.fromEither

Attributes

Companion
object
Source
Result.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Failure
class Success[T]

Members list

Value members

Abstract methods

def errorOpt: Option[String]

Attributes

Source
Result.scala
def flatMap[V](f: T => Result[V]): Result[V]

Attributes

Source
Result.scala
def get: T

Attributes

Source
Result.scala
def map[V](f: T => V): Result[V]

Attributes

Source
Result.scala
def toEither: Either[String, T]

Attributes

Source
Result.scala
def toOption: Option[T]

Attributes

Source
Result.scala

Concrete methods

def flatten: Result[A]
Extension method from Result

Attributes

Source
Result.scala