InstanceOverrideByOptic

zio.blocks.schema.derive.InstanceOverrideByOptic
case class InstanceOverrideByOptic[TC[_], A](optic: DynamicOptic, instance: Lazy[TC[A]]) extends InstanceOverride

Overrides the type class instance for the substructure at an exact path in the schema tree.

This is the most precise override: it targets one specific location identified by a DynamicOptic. Created via DerivationBuilder.instance(optic, instance).

Attributes

Source
InstanceOverride.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala