StructureFoundation5.9.0
UUID
Represents UUID strings, which can be used to uniquely identify types, interfaces, and other items.
struct UUID
Citizens in Foundation
Conformances
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomReflectable
A type that explicitly supplies its own mirror.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Decodable
A type that can decode itself from an external representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol ReferenceConvertible
Decorates types which are backed by a Foundation reference type.
protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.
Members
init(
) init(from: Decoder
) throws init(uuid: uuid_t
) Create a UUID from a
uuid_t
.init?(uuidString: String
) Create a UUID from a string such as “E621E1F8-C36C-495A-93FC-0C247A3E6E5F”.
var customMirror: Mirror
var debugDescription: String
var description: String
var uuid: uuid_t
var uuidString: String
Returns a string created from the UUID, such as “E621E1F8-C36C-495A-93FC-0C247A3E6E5F”
static func == (UUID, UUID
) -> Bool func encode(to: Encoder
) throws func hash(into: inout Hasher
) typealias ReferenceType