Movatterモバイル変換


[0]ホーム

URL:


Scala 3
3.7.4
LearnInstallPlaygroundFind A LibraryCommunityBlog
Scala 3
LearnInstallPlaygroundFind A LibraryCommunityBlog
DocsAPI
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL
Scala 3/scala/scala.deriving/Mirror

Mirror

scala.deriving.Mirror
See theMirror companion trait
objectMirror

Attributes

Companion
trait
Source
Mirror.scala
Graph
Supertypes
classObject
traitMatchable
classAny
Self type
Mirror.type

Members list

Type members

Classlikes

traitProduct extendsMirror

The Mirror for a product type

The Mirror for a product type

Attributes

Source
Mirror.scala
Supertypes
traitMirror
classObject
traitMatchable
classAny
Known subtypes
traitSingleton extendsProduct

Attributes

Source
Mirror.scala
Supertypes
traitProduct
traitMirror
classObject
traitMatchable
classAny
classSingletonProxy(valvalue:AnyRef) extendsProduct

A proxy for Scala 2 singletons, which do not inheritSingleton directly

A proxy for Scala 2 singletons, which do not inheritSingleton directly

Attributes

Source
Mirror.scala
Supertypes
traitProduct
traitMirror
classObject
traitMatchable
classAny
traitSum extendsMirror

The Mirror for a sum type

The Mirror for a sum type

Attributes

Source
Mirror.scala
Supertypes
traitMirror
classObject
traitMatchable
classAny
Self type

Types

typeOf[T] =Mirror {typeMirroredType =T;typeMirroredMonoType =T;typeMirroredElemTypes <:Tuple; }

Attributes

Source
Mirror.scala
typeProductOf[T] =Product {typeMirroredType =T;typeMirroredMonoType =T;typeMirroredElemTypes <:Tuple; }

Attributes

Source
Mirror.scala
typeSumOf[T] =Sum {typeMirroredType =T;typeMirroredMonoType =T;typeMirroredElemTypes <:Tuple; }

Attributes

Source
Mirror.scala

Extensions

Extensions

extension[T](p:ProductOf[T])
deffromProductTyped[A <:Product,Elems <:p.MirroredElemTypes](a:A)(usingProductOf[A] {typeMirroredElemTypes =Elems; }):T

Create a new instance of typeT with elements taken from producta.

Create a new instance of typeT with elements taken from producta.

Attributes

Source
Mirror.scala
deffromTuple(t: p.MirroredElemTypes):T

Create a new instance of typeT with elements taken from tuplet.

Create a new instance of typeT with elements taken from tuplet.

Attributes

Source
Mirror.scala
In this article
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL

[8]ページ先頭

©2009-2025 Movatter.jp