scala.deriving.Mirror
See theMirror companion trait
object Mirror
Attributes
- Companion
- trait
- Source
- Mirror.scala
- Graph
-
- Supertypes
- Self type
-
Mirror.type
Members list
Type members
Classlikes
The Mirror for a product type
class SingletonProxy(val value: AnyRef) extends Product
Extensions
Extensions
extension [T](p: ProductOf[T])
def fromProductTyped[A <: Product, Elems <: p.MirroredElemTypes](a: A)(using m: ProductOf[A] { type MirroredElemTypes = Elems; }): T
Create a new instance of type T
with elements taken from product a
.
Create a new instance of type T
with elements taken from tuple t
.
In this article