Crates.io | euui |
lib.rs | euui |
version | 0.9.3 |
source | src |
created_at | 2024-07-20 11:28:00.674692 |
updated_at | 2024-07-26 16:58:41.766765 |
description | An Extended Universal Unique Identifier |
homepage | |
repository | https://asgard.trehinos.eu/rust-libs/euui |
max_upload_size | |
id | 1309386 |
size | 8,521 |
This crate provides the Euui
struct.
This type represents a unique identifier which is 4 times bigger than UUIDs and GUIDs.
So, an EUUI is 512 bits or 64 bytes. It can be read as 4xu128
, 8xu64
or 64xu8
.
A raw hexadecimal string representing an EUUI is 128 characters wide.
A formatted hexadecimal string representing an EUUI is 131 characters wide (two "-" and one "\n").
You can create :
Euui::default
,Euui::random
.Then, use :
Euui::format
to display it as 4 u128s or Euui::.to_string
to get the whole hexadecimal string,Euui::u128
or Euui::to_be_guids
to reach for individual u128s,Euui::u64
to reach for individual u64s,Euui::u8
or Euui::to_be_bytes
to reach for individual u8s.2f8596cc2f3b3da9adf20cf9413104ab-1f8de1116aef039d12c80587e7551080
d43ed7632e94801a395a5454a382dff1-23decf62d51eafee3ec0bb98b1b90d15
2f8596cc2f3b3da9adf20cf9413104ab1f8de1116aef039d12c80587e7551080d43ed7632e94801a395a5454a382dff123decf62d51eafee3ec0bb98b1b90d15