struct Bool
Inheritance |
BooleanLiteralConvertible, BooleanType, CustomStringConvertible, Equatable, Hashable, _Reflectable
View Protocol Hierarchy →
|
---|---|
Import | import Swift |
Initializers
Construct an instance representing the same logical value as
value
.
Declaration
init<T : BooleanType>(_ value: T)
Create an instance initialized to value
.
Declaration
init(booleanLiteral value: Bool)
Instance Variables
A textual representation of self
.
Declaration
var description: String { get }
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
.