class ImplicitComputation extends AnyRef
Prune ImplicitInfos down to either all the eligible ones or the best one.
- Source
- Implicits.scala
- Alphabetic
- By Inheritance
- ImplicitComputation
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ImplicitComputation(iss: Analyzer.Infoss, isLocalToCallsite: Boolean)
- iss
list of list of infos
- isLocalToCallsite
if true,
iss
represents in-scope implicits, which must respect the normal rules of shadowing. The head of the listiss
must represent implicits from the closest enclosing scope, and so on.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from ImplicitComputation toany2stringadd[ImplicitComputation] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (ImplicitComputation, B)
- Implicit
- This member is added by an implicit conversion from ImplicitComputation toArrowAssoc[ImplicitComputation] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val eligible: List[Analyzer.ImplicitInfo]
- def ensuring(cond: (ImplicitComputation) => Boolean, msg: => Any): ImplicitComputation
- Implicit
- This member is added by an implicit conversion from ImplicitComputation toEnsuring[ImplicitComputation] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (ImplicitComputation) => Boolean): ImplicitComputation
- Implicit
- This member is added by an implicit conversion from ImplicitComputation toEnsuring[ImplicitComputation] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): ImplicitComputation
- Implicit
- This member is added by an implicit conversion from ImplicitComputation toEnsuring[ImplicitComputation] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): ImplicitComputation
- Implicit
- This member is added by an implicit conversion from ImplicitComputation toEnsuring[ImplicitComputation] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def findAll(): LinkedHashMap[Analyzer.ImplicitInfo, Analyzer.SearchResult]
Returns all eligible ImplicitInfos and their SearchResults in a map.
- def findBest(): Analyzer.SearchResult
Returns the SearchResult of the best match.
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ImplicitComputation toStringFormat[ImplicitComputation] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val invalidImplicits: ListBuffer[Global.Symbol]
The implicits that are not valid because they come later in the source and lack an explicit result type.
The implicits that are not valid because they come later in the source and lack an explicit result type. Used for error diagnostics only.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def survives(info: Analyzer.ImplicitInfo, shadower: Analyzer.Shadower): Boolean
True if a given ImplicitInfo (already known isValid) is eligible.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- lazy val wildPtNotInstantiable: Boolean
Faster implicit search.
Faster implicit search. Overall idea:
- prune aggressively
- find the most likely one
- if it matches, forget about all others it improves upon
- object DivergentImplicitRecovery
Preventing a divergent implicit from terminating implicit search, so that if there is a best candidate it can still be selected.
Deprecated Value Members
- def →[B](y: B): (ImplicitComputation, B)
- Implicit
- This member is added by an implicit conversion from ImplicitComputation toArrowAssoc[ImplicitComputation] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.
The Scala compiler and reflection APIs.