Movatterモバイル変換


[0]ホーム

URL:


Scala 3
3.7.4
LearnInstallPlaygroundFind A LibraryCommunityBlog
Scala 3
LearnInstallPlaygroundFind A LibraryCommunityBlog
DocsAPI
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL
Scala 3/scala/scala.math/LowPriorityEquiv

LowPriorityEquiv

scala.math.LowPriorityEquiv

Attributes

Source
Equiv.scala
Graph
Supertypes
classObject
traitMatchable
classAny
Known subtypes
objectEquiv
Self type
Equiv.type

Members list

Implicits

Deprecated implicits

implicitdefuniversalEquiv[T]:Equiv[T]

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 universalEquiv 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 twoFunction1 instances.) UseEquiv.universal explicitly instead. If you really want an implicit universalEquiv instance despite the potential problems, considerimplicit def universalEquiv[T]: Equiv[T] = universal[T].

Source
Equiv.scala
In this article
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL

[8]ページ先頭

©2009-2025 Movatter.jp