Equiv (original) (raw)

scala.math.Equiv

See theEquiv companion trait

Members list

Equivs for Doubles.

Equivs for Doubles.

Attributes

Source

Equiv.scala

Supertypes

Self type

Attributes

Source

Equiv.scala

Supertypes

Known subtypes

Equivs for Floats.

Equivs for Floats.

Attributes

Source

Equiv.scala

Supertypes

Self type

An object containing implicits which are not in the default scope.

An object containing implicits which are not in the default scope.

Attributes

Source

Equiv.scala

Supertypes

Self type

Attributes

Deprecated

[Since version 2.13.0] Use explicit Equiv.universal instead. See Scaladoc entry for more information: ".+("https://www.scala-lang.org/api/current/scala/math/Equiv$.html#universalEquiv\[T\]:scala.math.Equiv\[T\]")

This implicit universal Equiv instance allows accidentally comparing instances of types for which equality isn't well-defined or implemented. (For example, it does not make sense to compare two Function1 instances.) Use Equiv.universal explicitly instead. If you really want an implicit universal Equiv instance despite the potential problems, consider implicit def universalEquiv[T]: Equiv[T] = universal[T].

Inherited from:

LowPriorityEquiv

Source

Equiv.scala

In this article