Construct a UUID struct from the 16 byte representation of a UUID.
Construct a UUID struct from the 16 byte representation of a UUID. Variadic constructor to allow a simpler syntax, see examples. You need to pass exactly 16 ubytes.
<a name="UUID(string)"></a> Parse a UUID from its canonical string form. An UUID in its canonical form looks like this: 8ab3060e-2cba-4f23-b74c-b52db3bdfb46
RFC 4122 defines different internal data layouts for UUIDs. These are the UUID formats supported by this module. It's possible to read, compare and use all these Variants, but UUIDs generated by this module will always be in rfc4122 format.
RFC 4122 defines different UUID versions. The version shows how a UUID was generated, e.g. a version 4 UUID was generated from a random number, a version 3 UUID from an MD5 hash of a name.
All of the standard numeric operators are defined for the UUID struct.
All of the standard numeric operators are defined for the UUID struct.
Swap the data of this UUID with the data of rhs.
All of the standard numeric operators are defined for the UUID struct.
Write the UUID into sink as an ASCII string in the canonical form, which is 36 characters in the form "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Return the UUID as a string in the canonical form.
Returns true if and only if the UUID is equal to {00000000-0000-0000-0000-000000000000}
RFC 4122 defines different UUID versions. The version shows how a UUID was generated, e.g. a version 4 UUID was generated from a random number, a version 3 UUID from an MD5 hash of a name. Returns the version used by this UUID.
RFC 4122 defines different internal data layouts for UUIDs. Returns the format used by this UUID.