OpticsFor

zio.blocks.schema.OpticsFor
See theOpticsFor companion object
trait OpticsFor[S]

Type class that provides derived optics for type S. Used internally to enable the given Conversion pattern for direct field access.

It is public because Scala 3.10 only finds givens in a type's companion that are accessible where the search happens: with private[schema], Person.name stops compiling outside the zio.blocks.schema package.

Attributes

Companion
object
Source
DerivedOptics.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Type members

Types

type Out

Attributes

Source
DerivedOptics.scala

Value members

Abstract methods

def optics: Out

Attributes

Source
DerivedOptics.scala