struct
Bool
Inheritance |
BooleanLiteralConvertible, BooleanType, CustomStringConvertible, Equatable, Hashable, _Reflectable
View Protocol Hierarchy →
|
---|---|
Import |
|
Initializers
Default-initialize Boolean value to false
.
Declaration
init
()
Construct an instance representing the same logical value as
value
.
Declaration
init
<
T
:
BooleanType
>
(
_
value
:
T
)
Declaration
init
(
_builtinBooleanLiteral
value
:
Builtin
.
Int1
)
Instance Variables
The hash value.
Axiom: x == y
implies x.hashValue == y.hashValue
.
Note: the hash value is not guaranteed to be stable across different invocations of the same program. Do not persist the hash value across program runs.
Declaration
var
hashValue
:
Int
{
get
}
A value type whose instances are either
true
orfalse
.