scala.compiletime.ops.boolean.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala3-library_3 Show documentation
Show all versions of scala3-library_3 Show documentation
scala3-library-bootstrapped
The newest version!
package scala.compiletime
package ops
object boolean:
/** Negation of a `Boolean` singleton type.
* ```scala
* //{
* import compiletime.ops.boolean.*
* //}
* val notFalse: ![false] = true
* val notTrue: ![true] = false
* ```
* @syntax markdown
*/
type ![X <: Boolean] <: Boolean
/** Exclusive disjunction of two `Boolean` singleton types.
* ```scala
* //{
* import compiletime.ops.boolean.*
* //}
* val a: true ^ true = false
* val b: false ^ true = true
* ```
* @syntax markdown
*/
infix type ^[X <: Boolean, Y <: Boolean] <: Boolean
/** Conjunction of two `Boolean` singleton types.
* ```scala
* //{
* import compiletime.ops.boolean.*
* //}
* val a: true && true = true
* val b: false && true = false
* ```
* @syntax markdown
*/
infix type &&[X <: Boolean, Y <: Boolean] <: Boolean
/** Disjunction of two `Boolean` singleton types.
* ```scala
* //{
* import compiletime.ops.boolean.*
* //}
* val a: true || false = true
* val b: false || false = false
* ```
* @syntax markdown
*/
infix type ||[X <: Boolean, Y <: Boolean] <: Boolean
© 2015 - 2024 Weber Informatics LLC | Privacy Policy