Function rusty_ulid::generate_ulid_bytes
source · [−]Expand description
Returns new ULID bytes.
This function is a shortcut for Ulid::generate().into()
.
Example
let ulid_bytes = generate_ulid_bytes();
// a binary ulid has exactly 16 bytes
assert_eq!(ulid_bytes.len(), 16);