Reflect

zio.blocks.schema.Reflect
See theReflect companion trait
object Reflect

The kinds of Reflect node, the Reflect.Bound and Reflect.Unbound aliases, and the nodes of the built-in primitive, option, either, collection and map types.

Attributes

Companion
trait
Source
Reflect.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Reflect.type

Members list

Type members

Classlikes

case class Deferred[F[_, _], A](_value: () => Reflect[F, A], _typeId: Option[TypeId[A]] = ..., deferredDefaultValue: Option[() => A] = ..., deferredExamples: Seq[() => A] = ...) extends Reflect[F, A]

A node that stands for another node, built the first time it is needed. A recursive type uses it to refer to itself: in the derived schema of case class Tree(value: Int, children: List[Tree]), the node of the children field is a Deferred. Derivation also uses it for every field with a default value.

A node that stands for another node, built the first time it is needed. A recursive type uses it to refer to itself: in the derived schema of case class Tree(value: Int, children: List[Tree]), the node of the children field is a Deferred. Derivation also uses it for every field with a default value.

Its methods forward to value, except for the default value and examples set on this node, and the type ID when _typeId is set. The methods that walk the tree stop when they come back to this node: typeId then returns a placeholder named ``, toString prints deferred => and the type ID, equals returns true, and the as* and is* methods return None and false.

Value parameters

_typeId

a type ID to return instead of that node's

_value

builds the node that this one stands for

Attributes

Companion
object
Source
Reflect.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Reflect[F, A]
trait Reflectable[A]
class Object
trait Matchable
class Any
Show all
Self type
Deferred[F, A]
object Deferred

Type alias for deferred nodes of a bound reflect.

Type alias for deferred nodes of a bound reflect.

Attributes

Companion
class
Source
Reflect.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Deferred.type
case class Dynamic[F[_, _]](dynamicBinding: F[Dynamic, DynamicValue], typeId: TypeId[DynamicValue] = ..., doc: Doc = ..., modifiers: Seq[Reflect] = ..., storedDefaultValue: Option[DynamicValue] = ..., storedExamples: Seq[DynamicValue] = ...) extends Reflect[F, DynamicValue]

A node for a DynamicValue of any shape. fromDynamicValue returns any value as it is, and default values and examples are stored as they are given. Two dynamic nodes are equal when their documentation and modifiers are.

A node for a DynamicValue of any shape. fromDynamicValue returns any value as it is, and default values and examples are stored as they are given. Two dynamic nodes are equal when their documentation and modifiers are.

Value parameters

dynamicBinding

a Binding.Dynamic in a bound reflect, NoBinding in an unbound one

storedDefaultValue

the default value

storedExamples

the examples

Attributes

Companion
object
Source
Reflect.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Reflect[F, DynamicValue]
class Object
trait Matchable
class Any
Show all
object Dynamic

Type alias for dynamic nodes of a bound reflect.

Type alias for dynamic nodes of a bound reflect.

Attributes

Companion
class
Source
Reflect.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Dynamic.type
object Extractors

Patterns that match the sequence node of a standard collection by its type ID and return its element node.

Patterns that match the sequence node of a standard collection by its type ID and return its element node.

Attributes

Source
Reflect.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Extractors.type
case class Map[F[_, _], K, V, M[_, _]](key: Reflect[F, K], value: Reflect[F, V], typeId: TypeId[M[K, V]], mapBinding: F[Map[M], M[K, V]], doc: Doc = ..., modifiers: Seq[Reflect] = ..., storedDefaultValue: Option[DynamicValue] = ..., storedExamples: Seq[DynamicValue] = ...) extends Reflect[F, M[K, V]]

A node for a map M[K, V] with keys of type K and values of type V.

A node for a map M[K, V] with keys of type K and values of type V.

Value parameters

key

the node of the key type

mapBinding

a Binding.Map with the constructor and deconstructor of M in a bound reflect, NoBinding in an unbound one

storedDefaultValue

the default value, stored as a DynamicValue

storedExamples

the examples, stored as DynamicValues

value

the node of the value type

Attributes

Companion
object
Source
Reflect.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Reflect[F, M[K, V]]
trait Reflectable[M[K, V]]
class Object
trait Matchable
class Any
Show all
Self type
Map[F, K, V, M]
object Map

Type aliases for map nodes.

Type aliases for map nodes.

Attributes

Companion
class
Source
Reflect.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Map.type
case class Primitive[F[_, _], A](primitiveType: PrimitiveType[A], typeId: TypeId[A], primitiveBinding: F[Primitive, A], doc: Doc = ..., modifiers: Seq[Reflect] = ..., storedDefaultValue: Option[DynamicValue] = ..., storedExamples: Seq[DynamicValue] = ...) extends Reflect[F, A]

A node for one of the scalar types listed in PrimitiveType, such as String, Int or java.time.Instant. It converts values to and from DynamicValue with primitiveType.

A node for one of the scalar types listed in PrimitiveType, such as String, Int or java.time.Instant. It converts values to and from DynamicValue with primitiveType.

Value parameters

primitiveBinding

a Binding.Primitive in a bound reflect, NoBinding in an unbound one

primitiveType

the primitive type, with the Validation that DynamicSchema#check checks

storedDefaultValue

the default value, stored as a DynamicValue

storedExamples

the examples, stored as DynamicValues

Attributes

Companion
object
Source
Reflect.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Reflect[F, A]
trait Reflectable[A]
class Object
trait Matchable
class Any
Show all
Self type
Primitive[F, A]
object Primitive

Type alias for primitive nodes of a bound reflect.

Type alias for primitive nodes of a bound reflect.

Attributes

Companion
class
Source
Reflect.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Primitive.type
case class Record[F[_, _], A](fields: IndexedSeq[Term[F, A, _]], typeId: TypeId[A], recordBinding: F[Record, A], doc: Doc = ..., modifiers: Seq[Reflect] = ..., storedDefaultValue: Option[DynamicValue] = ..., storedExamples: Seq[DynamicValue] = ...) extends Reflect[F, A]

A node for a product type, such as a case class, with a Term per field in declaration order.

A node for a product type, such as a case class, with a Term per field in declaration order.

Value parameters

fields

the fields, each a Term with the field's name and node

recordBinding

a Binding.Record with the constructor and deconstructor of A in a bound reflect, NoBinding in an unbound one

storedDefaultValue

the default value, stored as a DynamicValue

storedExamples

the examples, stored as DynamicValues

Attributes

Companion
object
Source
Reflect.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Reflect[F, A]
trait Reflectable[A]
class Object
trait Matchable
class Any
Show all
Self type
Record[F, A]
object Record

Register layout helpers for record nodes.

Register layout helpers for record nodes.

Attributes

Companion
class
Source
Reflect.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Record.type
case class Sequence[F[_, _], A, C[_]](element: Reflect[F, A], typeId: TypeId[C[A]], seqBinding: F[Seq[C], C[A]], doc: Doc = ..., modifiers: Seq[Reflect] = ..., storedDefaultValue: Option[DynamicValue] = ..., storedExamples: Seq[DynamicValue] = ...) extends Reflect[F, C[A]]

A node for a collection C[A] of elements of type A, such as List[A], Vector[A] or Set[A].

A node for a collection C[A] of elements of type A, such as List[A], Vector[A] or Set[A].

Value parameters

element

the node of the element type

seqBinding

a Binding.Seq with the constructor and deconstructor of C in a bound reflect, NoBinding in an unbound one

storedDefaultValue

the default value, stored as a DynamicValue

storedExamples

the examples, stored as DynamicValues

Attributes

Companion
object
Source
Reflect.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Reflect[F, C[A]]
trait Reflectable[C[A]]
class Object
trait Matchable
class Any
Show all
Self type
Sequence[F, A, C]
object Sequence

Type aliases for sequence nodes.

Type aliases for sequence nodes.

Attributes

Companion
class
Source
Reflect.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Sequence.type
object Type

The kinds of node. A Reflect.Deferred has the kind of the node it stands for.

The kinds of node. A Reflect.Deferred has the kind of the node it stands for.

Attributes

Companion
trait
Source
Reflect.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Type.type
sealed trait Type

The kind of a Reflect node, which Reflect#nodeType returns. Its NodeBinding is the kind of binding that such a node holds.

The kind of a Reflect node, which Reflect#nodeType returns. Its NodeBinding is the kind of binding that such a node holds.

Attributes

Companion
object
Source
Reflect.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Dynamic
class Map[M]
object Primitive
object Record
class Sequence[C]
object Variant
class Wrapper[A, B]
Show all
trait Updater[F[_, _]]

A function that replaces a node of any type, which Reflect#updated applies to the node at a DynamicOptic path.

A function that replaces a node of any type, which Reflect#updated applies to the node at a DynamicOptic path.

Attributes

Source
Reflect.scala
Supertypes
class Object
trait Matchable
class Any
case class Variant[F[_, _], A](cases: IndexedSeq[Term[F, A, _ <: A]], typeId: TypeId[A], variantBinding: F[Variant, A], doc: Doc = ..., modifiers: Seq[Reflect] = ..., storedDefaultValue: Option[DynamicValue] = ..., storedExamples: Seq[DynamicValue] = ...) extends Reflect[F, A]

A node for a sum type, such as a sealed trait or an enum, with a Term per case. The value of each case term is the node of that case, usually a record.

A node for a sum type, such as a sealed trait or an enum, with a Term per case. The value of each case term is the node of that case, usually a record.

Value parameters

cases

the cases, each a Term with the case's name and node

storedDefaultValue

the default value, stored as a DynamicValue

storedExamples

the examples, stored as DynamicValues

variantBinding

a Binding.Variant with the discriminator and matchers of A in a bound reflect, NoBinding in an unbound one

Attributes

Companion
object
Source
Reflect.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Reflect[F, A]
trait Reflectable[A]
class Object
trait Matchable
class Any
Show all
object Variant

Type alias for variant nodes of a bound reflect.

Type alias for variant nodes of a bound reflect.

Attributes

Companion
class
Source
Reflect.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Variant.type
case class Wrapper[F[_, _], A, B](wrapped: Reflect[F, B], typeId: TypeId[A], wrapperBinding: F[Wrapper[A, B], A], doc: Doc = ..., modifiers: Seq[Reflect] = ..., storedDefaultValue: Option[DynamicValue] = ..., storedExamples: Seq[DynamicValue] = ...) extends Reflect[F, A]

A node for a type A that wraps a value of type B, such as an opaque type or a type built with Schema#transform. A has the DynamicValue form of B: toDynamicValue unwraps the value, and fromDynamicValue decodes a B and wraps it, returning a ConversionFailed error at .wrapped when the wrap function throws.

A node for a type A that wraps a value of type B, such as an opaque type or a type built with Schema#transform. A has the DynamicValue form of B: toDynamicValue unwraps the value, and fromDynamicValue decodes a B and wraps it, returning a ConversionFailed error at .wrapped when the wrap function throws.

Value parameters

storedDefaultValue

the default value, stored as a DynamicValue

storedExamples

the examples, stored as DynamicValues

wrapped

the node of the wrapped type B

wrapperBinding

a Binding.Wrapper with the wrap and unwrap functions in a bound reflect, NoBinding in an unbound one

Attributes

Companion
object
Source
Reflect.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Reflect[F, A]
trait Reflectable[A]
class Object
trait Matchable
class Any
Show all
Self type
Wrapper[F, A, B]
object Wrapper

Type aliases for wrapper nodes.

Type aliases for wrapper nodes.

Attributes

Companion
class
Source
Reflect.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Wrapper.type

Types

type Bound[A] = Reflect[Binding, A]

A Reflect with runtime bindings, capable of constructing and deconstructing values.

A Reflect with runtime bindings, capable of constructing and deconstructing values.

Attributes

Source
Reflect.scala
type Unbound[A] = Reflect[NoBinding, A]

A Reflect without runtime bindings, used for structural inspection and validation.

A Reflect without runtime bindings, used for structural inspection and validation.

Unbound reflects retain all schema metadata (type names, documentation, validations) but lack the runtime machinery to construct or deconstruct actual values. They are used by DynamicSchema for runtime validation of DynamicValue instances.

Attributes

Source
Reflect.scala

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def bigDecimal[F[_, _]](implicit F: FromBinding[F]): Reflect[F, BigDecimal]

Returns the primitive node of BigDecimal, without validation.

Returns the primitive node of BigDecimal, without validation.

Attributes

Source
Reflect.scala
def bigInt[F[_, _]](implicit F: FromBinding[F]): Reflect[F, BigInt]

Returns the primitive node of BigInt, without validation.

Returns the primitive node of BigInt, without validation.

Attributes

Source
Reflect.scala
def boolean[F[_, _]](implicit F: FromBinding[F]): Reflect[F, Boolean]

Returns the primitive node of Boolean, without validation.

Returns the primitive node of Boolean, without validation.

Attributes

Source
Reflect.scala
def byte[F[_, _]](implicit F: FromBinding[F]): Reflect[F, Byte]

Returns the primitive node of Byte, without validation.

Returns the primitive node of Byte, without validation.

Attributes

Source
Reflect.scala
def char[F[_, _]](implicit F: FromBinding[F]): Reflect[F, Char]

Returns the primitive node of Char, without validation.

Returns the primitive node of Char, without validation.

Attributes

Source
Reflect.scala
def chunk[F[_, _], A](element: Reflect[F, A])(implicit F: FromBinding[F]): Sequence[F, A, Chunk]

Returns the sequence node of Chunk[A], whose elements are described by element.

Returns the sequence node of Chunk[A], whose elements are described by element.

Attributes

Source
Reflect.scala
def chunkMap[F[_, _], K, V](key: Reflect[F, K], value: Reflect[F, V])(implicit F: FromBinding[F]): Map[F, K, V, ChunkMap]

Returns the map node of ChunkMap[K, V], with the key node key and the value node value.

Returns the map node of ChunkMap[K, V], with the key node key and the value node value.

Attributes

Source
Reflect.scala
def currency[F[_, _]](implicit F: FromBinding[F]): Reflect[F, Currency]

Returns the primitive node of java.util.Currency, without validation.

Returns the primitive node of java.util.Currency, without validation.

Attributes

Source
Reflect.scala
def dayOfWeek[F[_, _]](implicit F: FromBinding[F]): Reflect[F, DayOfWeek]

Returns the primitive node of java.time.DayOfWeek, without validation.

Returns the primitive node of java.time.DayOfWeek, without validation.

Attributes

Source
Reflect.scala
def double[F[_, _]](implicit F: FromBinding[F]): Reflect[F, Double]

Returns the primitive node of Double, without validation.

Returns the primitive node of Double, without validation.

Attributes

Source
Reflect.scala
def duration[F[_, _]](implicit F: FromBinding[F]): Reflect[F, Duration]

Returns the primitive node of java.time.Duration, without validation.

Returns the primitive node of java.time.Duration, without validation.

Attributes

Source
Reflect.scala
def dynamic[F[_, _]](implicit F: FromBinding[F]): Dynamic[F]

Returns a Reflect.Dynamic node for values of any shape.

Returns a Reflect.Dynamic node for values of any shape.

Attributes

Source
Reflect.scala
def either[F[_, _], A, B](left: Reflect[F, A], right: Reflect[F, B])(implicit F: FromBinding[F]): Variant[F, Either[A, B]]

Creates an Either[A, B] variant using the layouts described by the two child reflects.

Creates an Either[A, B] variant using the layouts described by the two child reflects.

Type parameters

A

the left value type

B

the right value type

F

the metadata type constructor

Value parameters

F

the conversion from runtime bindings to metadata

left

the reflect for left values

right

the reflect for right values

Attributes

Returns

a variant reflect whose cases are ordered as Left, then Right

Source
Reflect.scala
def float[F[_, _]](implicit F: FromBinding[F]): Reflect[F, Float]

Returns the primitive node of Float, without validation.

Returns the primitive node of Float, without validation.

Attributes

Source
Reflect.scala
def indexedSeq[F[_, _], A](element: Reflect[F, A])(implicit F: FromBinding[F]): Sequence[F, A, IndexedSeq]

Returns the sequence node of IndexedSeq[A], whose elements are described by element.

Returns the sequence node of IndexedSeq[A], whose elements are described by element.

Attributes

Source
Reflect.scala
def instant[F[_, _]](implicit F: FromBinding[F]): Reflect[F, Instant]

Returns the primitive node of java.time.Instant, without validation.

Returns the primitive node of java.time.Instant, without validation.

Attributes

Source
Reflect.scala
def int[F[_, _]](implicit F: FromBinding[F]): Reflect[F, Int]

Returns the primitive node of Int, without validation.

Returns the primitive node of Int, without validation.

Attributes

Source
Reflect.scala
def list[F[_, _], A](element: Reflect[F, A])(implicit F: FromBinding[F]): Sequence[F, A, List]

Returns the sequence node of List[A], whose elements are described by element.

Returns the sequence node of List[A], whose elements are described by element.

Attributes

Source
Reflect.scala
def localDate[F[_, _]](implicit F: FromBinding[F]): Reflect[F, LocalDate]

Returns the primitive node of java.time.LocalDate, without validation.

Returns the primitive node of java.time.LocalDate, without validation.

Attributes

Source
Reflect.scala
def localDateTime[F[_, _]](implicit F: FromBinding[F]): Reflect[F, LocalDateTime]

Returns the primitive node of java.time.LocalDateTime, without validation.

Returns the primitive node of java.time.LocalDateTime, without validation.

Attributes

Source
Reflect.scala
def localTime[F[_, _]](implicit F: FromBinding[F]): Reflect[F, LocalTime]

Returns the primitive node of java.time.LocalTime, without validation.

Returns the primitive node of java.time.LocalTime, without validation.

Attributes

Source
Reflect.scala
def long[F[_, _]](implicit F: FromBinding[F]): Reflect[F, Long]

Returns the primitive node of Long, without validation.

Returns the primitive node of Long, without validation.

Attributes

Source
Reflect.scala
def map[F[_, _], K, V](key: Reflect[F, K], value: Reflect[F, V])(implicit F: FromBinding[F]): Map[F, K, V, Map]

Returns the map node of an immutable Map[K, V], with the key node key and the value node value.

Returns the map node of an immutable Map[K, V], with the key node key and the value node value.

Attributes

Source
Reflect.scala
def maybe[F[_, _], A <: AnyRef](element: Reflect[F, A])(implicit F: FromBinding[F]): Variant[F, AnyRef]

Returns the variant node of zio.blocks.maybe.Maybe[A] for a reference type A, typed as a Variant[F, AnyRef], with the cases Absent and Present. Present is a record with the single field value, whose node is element.

Returns the variant node of zio.blocks.maybe.Maybe[A] for a reference type A, typed as a Variant[F, AnyRef], with the cases Absent and Present. Present is a record with the single field value, whose node is element.

Attributes

Source
Reflect.scala
def maybeBoolean[F[_, _]](element: Reflect[F, Boolean])(implicit F: FromBinding[F]): Variant[F, AnyRef]

Like maybe, for Maybe[Boolean], whose Present binding keeps the value in a Boolean register.

Like maybe, for Maybe[Boolean], whose Present binding keeps the value in a Boolean register.

Attributes

Source
Reflect.scala
def maybeByte[F[_, _]](element: Reflect[F, Byte])(implicit F: FromBinding[F]): Variant[F, AnyRef]

Like maybe, for Maybe[Byte], whose Present binding keeps the value in a Byte register.

Like maybe, for Maybe[Byte], whose Present binding keeps the value in a Byte register.

Attributes

Source
Reflect.scala
def maybeChar[F[_, _]](element: Reflect[F, Char])(implicit F: FromBinding[F]): Variant[F, AnyRef]

Like maybe, for Maybe[Char], whose Present binding keeps the value in a Char register.

Like maybe, for Maybe[Char], whose Present binding keeps the value in a Char register.

Attributes

Source
Reflect.scala
def maybeDouble[F[_, _]](element: Reflect[F, Double])(implicit F: FromBinding[F]): Variant[F, AnyRef]

Like maybe, for Maybe[Double], whose Present binding keeps the value in a Double register.

Like maybe, for Maybe[Double], whose Present binding keeps the value in a Double register.

Attributes

Source
Reflect.scala
def maybeFloat[F[_, _]](element: Reflect[F, Float])(implicit F: FromBinding[F]): Variant[F, AnyRef]

Like maybe, for Maybe[Float], whose Present binding keeps the value in a Float register.

Like maybe, for Maybe[Float], whose Present binding keeps the value in a Float register.

Attributes

Source
Reflect.scala
def maybeInt[F[_, _]](element: Reflect[F, Int])(implicit F: FromBinding[F]): Variant[F, AnyRef]

Like maybe, for Maybe[Int], whose Present binding keeps the value in an Int register.

Like maybe, for Maybe[Int], whose Present binding keeps the value in an Int register.

Attributes

Source
Reflect.scala
def maybeLong[F[_, _]](element: Reflect[F, Long])(implicit F: FromBinding[F]): Variant[F, AnyRef]

Like maybe, for Maybe[Long], whose Present binding keeps the value in a Long register.

Like maybe, for Maybe[Long], whose Present binding keeps the value in a Long register.

Attributes

Source
Reflect.scala
def maybeShort[F[_, _]](element: Reflect[F, Short])(implicit F: FromBinding[F]): Variant[F, AnyRef]

Like maybe, for Maybe[Short], whose Present binding keeps the value in a Short register.

Like maybe, for Maybe[Short], whose Present binding keeps the value in a Short register.

Attributes

Source
Reflect.scala
def maybeUnit[F[_, _]](element: Reflect[F, Unit])(implicit F: FromBinding[F]): Variant[F, AnyRef]

Like maybe, for Maybe[Unit].

Like maybe, for Maybe[Unit].

Attributes

Source
Reflect.scala
def month[F[_, _]](implicit F: FromBinding[F]): Reflect[F, Month]

Returns the primitive node of java.time.Month, without validation.

Returns the primitive node of java.time.Month, without validation.

Attributes

Source
Reflect.scala
def monthDay[F[_, _]](implicit F: FromBinding[F]): Reflect[F, MonthDay]

Returns the primitive node of java.time.MonthDay, without validation.

Returns the primitive node of java.time.MonthDay, without validation.

Attributes

Source
Reflect.scala
def offsetDateTime[F[_, _]](implicit F: FromBinding[F]): Reflect[F, OffsetDateTime]

Returns the primitive node of java.time.OffsetDateTime, without validation.

Returns the primitive node of java.time.OffsetDateTime, without validation.

Attributes

Source
Reflect.scala
def offsetTime[F[_, _]](implicit F: FromBinding[F]): Reflect[F, OffsetTime]

Returns the primitive node of java.time.OffsetTime, without validation.

Returns the primitive node of java.time.OffsetTime, without validation.

Attributes

Source
Reflect.scala
def option[F[_, _], A <: AnyRef](element: Reflect[F, A])(implicit F: FromBinding[F]): Variant[F, Option[A]]

Returns the variant node of Option[A] for a reference type A, with the cases None and Some. Some is a record with the single field value, whose node is element.

Returns the variant node of Option[A] for a reference type A, with the cases None and Some. Some is a record with the single field value, whose node is element.

Attributes

Source
Reflect.scala
def optionBoolean[F[_, _]](element: Reflect[F, Boolean])(implicit F: FromBinding[F]): Variant[F, Option[Boolean]]

Like option, for Option[Boolean], whose Some binding keeps the value in a Boolean register.

Like option, for Option[Boolean], whose Some binding keeps the value in a Boolean register.

Attributes

Source
Reflect.scala
def optionByte[F[_, _]](element: Reflect[F, Byte])(implicit F: FromBinding[F]): Variant[F, Option[Byte]]

Like option, for Option[Byte], whose Some binding keeps the value in a Byte register.

Like option, for Option[Byte], whose Some binding keeps the value in a Byte register.

Attributes

Source
Reflect.scala
def optionChar[F[_, _]](element: Reflect[F, Char])(implicit F: FromBinding[F]): Variant[F, Option[Char]]

Like option, for Option[Char], whose Some binding keeps the value in a Char register.

Like option, for Option[Char], whose Some binding keeps the value in a Char register.

Attributes

Source
Reflect.scala
def optionDouble[F[_, _]](element: Reflect[F, Double])(implicit F: FromBinding[F]): Variant[F, Option[Double]]

Like option, for Option[Double], whose Some binding keeps the value in a Double register.

Like option, for Option[Double], whose Some binding keeps the value in a Double register.

Attributes

Source
Reflect.scala
def optionFloat[F[_, _]](element: Reflect[F, Float])(implicit F: FromBinding[F]): Variant[F, Option[Float]]

Like option, for Option[Float], whose Some binding keeps the value in a Float register.

Like option, for Option[Float], whose Some binding keeps the value in a Float register.

Attributes

Source
Reflect.scala
def optionInt[F[_, _]](element: Reflect[F, Int])(implicit F: FromBinding[F]): Variant[F, Option[Int]]

Like option, for Option[Int], whose Some binding keeps the value in an Int register.

Like option, for Option[Int], whose Some binding keeps the value in an Int register.

Attributes

Source
Reflect.scala
def optionLong[F[_, _]](element: Reflect[F, Long])(implicit F: FromBinding[F]): Variant[F, Option[Long]]

Like option, for Option[Long], whose Some binding keeps the value in a Long register.

Like option, for Option[Long], whose Some binding keeps the value in a Long register.

Attributes

Source
Reflect.scala
def optionShort[F[_, _]](element: Reflect[F, Short])(implicit F: FromBinding[F]): Variant[F, Option[Short]]

Like option, for Option[Short], whose Some binding keeps the value in a Short register.

Like option, for Option[Short], whose Some binding keeps the value in a Short register.

Attributes

Source
Reflect.scala
def optionUnit[F[_, _]](element: Reflect[F, Unit])(implicit F: FromBinding[F]): Variant[F, Option[Unit]]

Like option, for Option[Unit].

Like option, for Option[Unit].

Attributes

Source
Reflect.scala
def period[F[_, _]](implicit F: FromBinding[F]): Reflect[F, Period]

Returns the primitive node of java.time.Period, without validation.

Returns the primitive node of java.time.Period, without validation.

Attributes

Source
Reflect.scala
def seq[F[_, _], A](element: Reflect[F, A])(implicit F: FromBinding[F]): Sequence[F, A, Seq]

Returns the sequence node of Seq[A], whose elements are described by element.

Returns the sequence node of Seq[A], whose elements are described by element.

Attributes

Source
Reflect.scala
def set[F[_, _], A](element: Reflect[F, A])(implicit F: FromBinding[F]): Sequence[F, A, Set]

Returns the sequence node of Set[A], whose elements are described by element.

Returns the sequence node of Set[A], whose elements are described by element.

Attributes

Source
Reflect.scala
def short[F[_, _]](implicit F: FromBinding[F]): Reflect[F, Short]

Returns the primitive node of Short, without validation.

Returns the primitive node of Short, without validation.

Attributes

Source
Reflect.scala
def string[F[_, _]](implicit F: FromBinding[F]): Reflect[F, String]

Returns the primitive node of String, without validation.

Returns the primitive node of String, without validation.

Attributes

Source
Reflect.scala
def unit[F[_, _]](implicit F: FromBinding[F]): Reflect[F, Unit]

Returns the primitive node of Unit.

Returns the primitive node of Unit.

Attributes

Source
Reflect.scala
def uuid[F[_, _]](implicit F: FromBinding[F]): Reflect[F, UUID]

Returns the primitive node of java.util.UUID, without validation.

Returns the primitive node of java.util.UUID, without validation.

Attributes

Source
Reflect.scala
def vector[F[_, _], A](element: Reflect[F, A])(implicit F: FromBinding[F]): Sequence[F, A, Vector]

Returns the sequence node of Vector[A], whose elements are described by element.

Returns the sequence node of Vector[A], whose elements are described by element.

Attributes

Source
Reflect.scala
def year[F[_, _]](implicit F: FromBinding[F]): Reflect[F, Year]

Returns the primitive node of java.time.Year, without validation.

Returns the primitive node of java.time.Year, without validation.

Attributes

Source
Reflect.scala
def yearMonth[F[_, _]](implicit F: FromBinding[F]): Reflect[F, YearMonth]

Returns the primitive node of java.time.YearMonth, without validation.

Returns the primitive node of java.time.YearMonth, without validation.

Attributes

Source
Reflect.scala
def zoneId[F[_, _]](implicit F: FromBinding[F]): Reflect[F, ZoneId]

Returns the primitive node of java.time.ZoneId, without validation.

Returns the primitive node of java.time.ZoneId, without validation.

Attributes

Source
Reflect.scala
def zoneOffset[F[_, _]](implicit F: FromBinding[F]): Reflect[F, ZoneOffset]

Returns the primitive node of java.time.ZoneOffset, without validation.

Returns the primitive node of java.time.ZoneOffset, without validation.

Attributes

Source
Reflect.scala
def zonedDateTime[F[_, _]](implicit F: FromBinding[F]): Reflect[F, ZonedDateTime]

Returns the primitive node of java.time.ZonedDateTime, without validation.

Returns the primitive node of java.time.ZonedDateTime, without validation.

Attributes

Source
Reflect.scala