ConstantDeconstructor

zio.blocks.schema.binding.ConstantDeconstructor
class ConstantDeconstructor[A] extends Deconstructor[A]

A deconstructor that uses no registers and writes nothing, for types without fields such as case objects.

Attributes

Source
Deconstructor.scala
Graph
Supertypes
class Deconstructor[A]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def deconstruct(out: Registers, offset: RegisterOffset, in: A): Unit

Writes the fields of in into out, at positions counted from offset.

Writes the fields of in into out, at positions counted from offset.

Attributes

Definition Classes
Source
Deconstructor.scala

The registers that deconstruct writes, counted from its offset: the number of object slots and the number of bytes. Callers size their Registers with it.

The registers that deconstruct writes, counted from its offset: the number of object slots and the number of bytes. Callers size their Registers with it.

Attributes

Definition Classes
Source
Deconstructor.scala