Matchers

zio.blocks.schema.binding.Matchers
See theMatchers companion object
final case class Matchers[+A](matchers: IndexedSeq[Matcher[_ <: A]])

The Matchers of a Binding.Variant, one per case, in the order of the variant node's cases.

Type parameters

A

the sum type

Attributes

Companion
object
Source
Matchers.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def apply(index: Int): Matcher[_ <: A]

Returns the matcher of the case at index, which must be a valid case index.

Returns the matcher of the case at index, which must be a valid case index.

Attributes

Source
Matchers.scala

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