AsResult

io.scalaland.chimney.partial.AsResult
See theAsResult companion object
trait AsResult[F[_]]

Utility allowing conversion from some type into io.scalaland.chimney.partial.Result.

Should define logic what is considered successful value, what is considered failed value and how to convert it into io.scalaland.chimney.partial.Result.

Type parameters

F

generic data type which should be convertible to Result for all possible values

Attributes

See also
Since

0.8.5

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def asResult[A](fa: F[A]): Result[A]

Converts F[A] into Result[A].

Converts F[A] into Result[A].

Type parameters

A

type of successful value

Value parameters

fa

converted value

Attributes

Returns

converted value

Since

0.8.5