CanEqual

scala.CanEqual$
See theCanEqual companion trait
object CanEqual

Companion object containing a few universally known CanEqual instances. CanEqual instances involving primitive types or the Null type are handled directly in the compiler (see Implicits.synthesizedCanEqual), so they are not included here.

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
CanEqual.type

Members list

Type members

Classlikes

object derived extends CanEqual[Any, Any]

A universal CanEqual instance.

A universal CanEqual instance.

Attributes

Supertypes
trait CanEqual[Any, Any]
class Object
trait Matchable
class Any
Self type
derived.type

Inherited types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def canEqualAny[L, R]: CanEqual[L, R]

A fall-back instance to compare values of any types. Even though this method is not declared as given, the compiler will synthesize implicit arguments as solutions to CanEqual[T, U] queries if the rules of multiversal equality require it.

A fall-back instance to compare values of any types. Even though this method is not declared as given, the compiler will synthesize implicit arguments as solutions to CanEqual[T, U] queries if the rules of multiversal equality require it.

Attributes

Givens

Givens

given canEqualEither[L1, R1, L2, R2](using eqL: CanEqual[L1, L2], eqR: CanEqual[R1, R2]): CanEqual[Either[L1, R1], Either[L2, R2]]
given canEqualMap[K1, V1, K2, V2](using eqK: CanEqual[K1, K2], eqV: CanEqual[V1, V2]): CanEqual[Map[K1, V1], Map[K2, V2]]
given canEqualOption[T](using eq: CanEqual[T, T]): CanEqual[Option[T], Option[T]]
given canEqualOptions[T, U](using eq: CanEqual[T, U]): CanEqual[Option[T], Option[U]]
given canEqualSeq[T](using eq: CanEqual[T, T]): CanEqual[Seq[T], Seq[T]]
given canEqualSeqs[T, U](using eq: CanEqual[T, U]): CanEqual[Seq[T], Seq[U]]
given canEqualSet[T, U](using eq: CanEqual[T, U]): CanEqual[Set[T], Set[U]]