Ulid.fromUuid

Ulid fromUuid(const UUID uuid) static @safe pure nothrow @nogc

Converts a UUID with the same 128-bit value. Every UUID is a valid ULID bit pattern, although its first 48 bits are only a meaningful timestamp if it was made from a ULID (or is a version 7 UUID).

Parameters

uuidthe UUID to convert.

Returns

the ULID with the same bytes.