Initializerswift 6.0.3FoundationEssentials
init(from:)
- iOS
- 6.0+
- macOS
- 10.8+
- tvOS
- 9.0+
- watchOS
- 2.0+
init(from decoder: any Decoder) throws
init(from decoder: any Decoder) throws
import FoundationEssentials
struct UUID
Represents UUID strings, which can be used to uniquely identify types, interfaces, and other items.
protocol Decoder
A type that can decode values from a native format into in-memory representations.
init()
init(uuid: uuid_t)
Create a UUID from a uuid_t
.
init?(uuidString string: String)
Create a UUID from a string such as “E621E1F8-C36C-495A-93FC-0C247A3E6E5F”.
var customMirror: Mirror { get }
var debugDescription: String { get }
var description: String { get }
var uuid: uuid_t { get }
var uuidString: String { get }
Returns a string created from the UUID, such as “E621E1F8-C36C-495A-93FC-0C247A3E6E5F”
static func < (lhs: UUID, rhs: UUID) -> Bool
static func == (lhs: UUID, rhs: UUID) -> Bool
func encode(to encoder: any Encoder) throws
func hash(into hasher: inout Hasher)