Crate ulid [−] [src]
ulid-rs
This is a Rust implementation of the ulid project which provides Universally Unique Lexicographically Sortable Identifiers.
Quickstart
// Generate a ulid let ulid = Ulid::new(); // Generate a string for a ulid let s = ulid.to_string(); // Create from a String let res = Ulid::from_string(&s); assert_eq!(ulid, res.unwrap());
Structs
Ulid |
A Ulid is a unique 128-bit lexicographically sortable identifier |
Enums
EncodingError |
An encoding error that can occur when decoding a base32 string |