Prism

@implicitNotFound("could not find implicit Prism[${S}, ${A}]; ensure ${A} is a subtype of ${S} or manually define an instance") sealed abstract class Prism[S, A]

Optic used for selecting a part of a coproduct type.

Optic used for selecting a part of a coproduct type.

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def getOption: S => Option[A]
Implicitly added by some

Attempts to select a coproduct part.

Attempts to select a coproduct part.

def getOption: S => Option[A]

Attempts to select a coproduct part.

Attempts to select a coproduct part.

def reverseGet: A => S
Implicitly added by some

Creates a coproduct from a coproduct part.

Creates a coproduct from a coproduct part.

def reverseGet: A => S

Creates a coproduct from a coproduct part.

Creates a coproduct from a coproduct part.