View source code
Display the source code in std/uuid.d from which this
page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a
Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
std.uuid.UUID.Variant/variant
- multiple declarations
Function UUID.variant
RFC 4122 defines different internal data layouts for UUIDs. Returns the format used by this UUID.
Note
Do not confuse this with Variant
.
The type of this property is `std.uuid.UUID.Variant`.
See Also
Example
assert(UUID("8ab3060e-2cba-4f23-b74c-b52db3bdfb46") .variant
== UUID .Variant .rfc4122);
Enum UUID.Variant
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.
enum Variant
: int { ... }
Enum members
Name | Description |
---|---|
future
|
Reserved for future use |
microsoft
|
Microsoft Corporation backward compatibility |
ncs
|
NCS backward compatibility |
rfc4122
|
Defined in RFC 4122 document |
Note
Do not confuse this with Variant
.
Authors
Johannes Pfau
License
Copyright © 1999-2022 by the D Language Foundation | Page generated by ddox.