Optional

zio.blocks.schema.comptime.Allows.Optional
sealed abstract class Optional[A <: Structural] extends Structural

Matches Option[A] where the inner type satisfies A. Option is handled as a dedicated grammar node rather than being auto-unwrapped as a two-case sealed trait.

Type parameters

A

The constraint that the inner (unwrapped) type of the Option must satisfy.

Attributes

Source
Allows.scala
Graph
Supertypes
class Structural
class Object
trait Matchable
class Any
In this article