zio.blocks.typeid.Variance
See theVariance companion trait
object Variance
Attributes
- Companion
- trait
- Source
- Variance.scala
- Graph
-
- Supertypes
- Self type
-
Variance.type
Members list
Type members
Classlikes
case object Contravariant extends Variance
Contravariant: -A Reverses subtyping: if Dog <: Animal, then F[Animal] <: F[Dog]
Contravariant: -A Reverses subtyping: if Dog <: Animal, then F[Animal] <: F[Dog]
Attributes
- Source
- Variance.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait Varianceclass Objecttrait Matchableclass AnyShow all
- Self type
-
Contravariant.type
Covariant: +A Preserves subtyping: if Dog <: Animal, then F[Dog] <: F[Animal]
Covariant: +A Preserves subtyping: if Dog <: Animal, then F[Dog] <: F[Animal]
Attributes
- Source
- Variance.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait Varianceclass Objecttrait Matchableclass AnyShow all
- Self type
-
Covariant.type
Invariant: A No subtyping relationship between F[Dog] and F[Animal]
Invariant: A No subtyping relationship between F[Dog] and F[Animal]
Attributes
- Source
- Variance.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait Varianceclass Objecttrait Matchableclass AnyShow all
- Self type
-
Invariant.type
Inherited and Abstract types
The names of the product elements.
The name of the type.
In this article