OpticsHolder

zio.blocks.schema.OpticsHolder
final class OpticsHolder(members: Map[String, Any]) extends Dynamic, Selectable

The runtime object behind optics: it holds the derived optics by name, and the type of optics gives each member its type. It is an implementation detail; use the members of optics. On Scala 2 it is DerivedOptics.OpticsHolder and backs only the optics of types that are neither case classes nor sealed traits (the others are anonymous classes); on Scala 3 it is zio.blocks.schema.OpticsHolder, backs every optics, and is also a Selectable.

Attributes

Source
DerivedOptics.scala
Graph
Supertypes
trait Selectable
trait Dynamic
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def selectDynamic(name: String): Any

Returns the optic named name.

Returns the optic named name.

Attributes

Throws
java.lang.RuntimeException

(No optic found for:) if there is no optic with that name

Source
DerivedOptics.scala