As

zio.blocks.schema.As
See theAs companion trait

Attributes

Companion
trait
Source
As.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
As.type

Members list

Value members

Concrete methods

def apply[A, B](intoAB: Into[A, B], intoBA: Into[B, A]): As[A, B]

Creates an As[A, B] from two Into instances.

Creates an As[A, B] from two Into instances.

Attributes

Source
As.scala
def apply[A, B](implicit ev: As[A, B]): As[A, B]

Attributes

Source
As.scala

Inherited methods

inline def derived[A, B]: As[A, B]

Derives a bidirectional conversion As[A, B].

Derives a bidirectional conversion As[A, B].

This macro will:

  1. Verify that both Into[A, B] and Into[B, A] can be derived
  2. Check compatibility rules (no default values, consistent field mappings)
  3. Generate an As[A, B] that delegates to both derived Into instances

Attributes

Inherited from:
AsVersionSpecific
Source
AsVersionSpecific.scala

Implicits

Inherited implicits

implicit def reverseInto[A, B](implicit as: As[A, B]): Into[B, A]

Attributes

Inherited from:
AsLowPriorityImplicits
Source
As.scala