scala / 3.1 / scala / quoted / toexpr.html

Trait scala.quoted.ToExpr

trait ToExpr[T]

A type class for types that can convert a value of T into quoted.Expr[T] an expression that will create a copy of the value.

Supertypes
Known subtypes

Abstract methods

Source
def apply(x: T)(using Quotes): Expr[T]

Lift a value into an expression containing the construction of that value

© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.1.1/scala/quoted/ToExpr.html