io.github.iltotore.iron.constraint.any.Xor
See theXor companion class
object Xor
Attributes
Members list
Type members
Classlikes
class XorConstraint[A, C1, C2, Impl1 <: Constraint[A, C1], Impl2 <: Constraint[A, C2]] extends Constraint[A, Xor[C1, C2]]
Attributes
- Source
- any.scala
- Supertypes
Givens
Givens
Xor[C1, C2] <=> Xor[C2, C1].
inline given given_XorConstraint_A_C1_C2_Impl1_Impl2[A, C1, C2, Impl1 <: Constraint[A, C1], Impl2 <: Constraint[A, C2]](using inline impl1: Impl1, impl2: Impl2): XorConstraint[A, C1, C2, Impl1, Impl2]
Attributes
- Source
- any.scala
given left[C1, C2, C3](using Implication[C1, Not[C2]], Implication[C1, C3]): Implication[C1, Xor[C3, C2]]
C1 implies Xor[C1, C2] if C1 and C2 are exclusives.
given right[C1, C2, C3](using Implication[C1, Not[C2]], Implication[C1, C3]): Implication[C1, Xor[C2, C3]]
C1 implies Xor[C2, C1] if C1 and C2 are exclusives.
In this article