random_uuid.rs |
Generating a random UUID.
If you enable the `v4` feature you can generate random UUIDs. |
294 |
sortable_uuid.rs |
Generating a sortable UUID.
If you enable the `v7` feature you can generate sortable UUIDs. |
302 |
uuid_macro.rs |
Using the `uuid!` macro.
`uuid!` will parse encoded UUIDs at compile time instead of at runtime.
If you've got a fixed UUID string handy then consider using `uuid!` instead
of `Uuid::parse_str` or `str::parse`.
If you enable the `macro-diagnostics` feature, you can see much better
error messages. |
538 |
windows_guid.rs |
Converting between Windows GUIDs and UUIDs.
Windows GUIDs are specified as using mixed endianness.
What you get will depend on the source of the GUID.
Functions like `CoCreateGuid` will generate a valid UUID so
the fields will be naturally ordered for `Uuid::from_fields`.
Other GUIDs might need to be passed to `Uuid::from_fields_le`
to have their ordering swapped. |
2818 |