Instance Methodswift 6.0.1Swift
hash(into:)
Hashes the essential components of this value by feeding them into the given hasher.
func hash(into hasher: inout Hasher)
Parameters
- hasher
The hasher to use when combining the components of this instance.
Other members in extension
Type members
init(
) Creates an instance initialized to
false
.init(Bool
) Creates an instance equal to the given Boolean value.
init?(String
) Creates a new Boolean value from the given string.
init(booleanLiteral: Bool
) Creates an instance initialized to the specified Boolean literal.
init(from: any Decoder
) throws static func random(
) -> Bool Returns a random Boolean value.
static func random<T>(using: inout T
) -> Bool Returns a random Boolean value, using the given generator as a source for randomness.
static func ! (a: Bool
) -> Bool Performs a logical NOT operation on a Boolean value.
static func && (lhs: Bool, rhs: @autoclosure () throws -> Bool
) rethrows -> Bool Performs a logical AND operation on two Boolean values.
static func == (lhs: Bool, rhs: Bool
) -> Bool static func || (lhs: Bool, rhs: @autoclosure () throws -> Bool
) rethrows -> Bool Performs a logical OR operation on two Boolean values.
Instance members
var customMirror: Mirror
A mirror that reflects the
Bool
instance.var description: String
A textual representation of the Boolean value.
func encode(to: any Encoder
) throws Encodes this value into the given encoder.
func toggle(
) Toggles the Boolean variable’s value.
Show obsolete interfaces (1)
Hide obsolete interfaces
var customPlaygroundQuickLook: _PlaygroundQuickLook
A custom playground Quick Look for the
Bool
instance.