Matcher

zio.blocks.schema.binding.Matcher
trait Matcher[+A]

A Matcher downcasts a value of a sum type to one of its cases: a Binding.Variant has one per case, in Matchers.

Type parameters

A

the case type

Attributes

Source
Matcher.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def downcastOrNull(any: Any): A

Returns any as an A when it is a value of this case, and null otherwise.

Returns any as an A when it is a value of this case, and null otherwise.

Attributes

Source
Matcher.scala