Iso

scodec.Iso$
See theIso companion trait
object Iso

Companion for Iso.

Attributes

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

Members list

Concise view

Value members

Inherited methods

protected def fromTuple[A](using m: ProductOf[A])(t: <none>): A

Attributes

Inherited from:
IsoLowPriority (hidden)
Source:
Iso.scala
def instance[A, B](t: A => B)(f: B => A): Iso[A, B]

Attributes

Inherited from:
IsoLowPriority (hidden)
Source:
Iso.scala
protected def toTuple[A <: Product](a: A)(using m: ProductOf[A]): <none>

Attributes

Inherited from:
IsoLowPriority (hidden)
Source:
Iso.scala

Givens

Givens

given id[A]: Iso[A, A]

Identity iso.

Identity iso.

Attributes

Source:
Iso.scala
given product[A <: Tuple, B <: Product](using m: ProductOf[B] { type MirroredElemTypes = A; }): Iso[A, B]

Attributes

Source:
Iso.scala
given singleton[A, B <: Product](using m: ProductOf[B] { type MirroredElemTypes = A *: EmptyTuple; }): Iso[A, B]

Attributes

Source:
Iso.scala

Inherited givens

given inverse[A, B](using iso: Iso[A, B]): Iso[B, A]

Attributes

Inherited from:
IsoLowPriority (hidden)
Source:
Iso.scala
inline given productWithUnits[A <: Tuple, B <: Product](using m: ProductOf[B] { type MirroredElemTypes = DropUnits[A]; }): Iso[A, B]

Attributes

Inherited from:
IsoLowPriority (hidden)
Source:
Iso.scala