given_FromExpr_Boolean

io.github.iltotore.iron.macros.package$package.given_FromExpr_Boolean
object given_FromExpr_Boolean extends FromExpr[Boolean]

A FromExpr[Boolean] that can extract value from partially inlined || and && operations.

 inline val x = true
 val y: Boolean = ???

 x || y //inlined to `true`
 y || x //inlined to `true`

 inline val a = false
 val b: Boolean = ???

 a && b //inlined to `false`
 b && a //inlined to `false`

Attributes

Source
package.scala
Graph
Supertypes
trait FromExpr[Boolean]
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

override def unapply(expr: Expr[Boolean])(using Quotes): Option[Boolean]

Return the value of the expression.

Return the value of the expression.

Returns None if the expression does not represent a value or possibly contains side effects. Otherwise returns the Some of the value.

Attributes

Definition Classes
FromExpr
Source
package.scala