View source code Display the source code in std/uuid.d from which this page was generated on github. 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. Page wiki View or edit the community-maintained wiki page associated with this page.

std.uuid.uuid.variant - multiple declarations

Function UUID.variant

RFC 4122 defines different internal data layouts for UUIDs. Returns the format used by this UUID.

Prototype

UUID.Variant variant() pure nothrow @property @nogc @safe const;

Note

Do not confuse this with std.variant.Variant. The type of this property is std.uuid.UUID.Variant, Variant.

See Also

UUID.Variant, Variant

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.

The enum base type is 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 std.variant.Variant.

Authors

Johannes Pfau

License

Boost License 1.0.

Comments