Expand description
Structs§
- Encrypted
Nano64 - Represents an encrypted Nano64 ID.
- Nano64
- Nano64
Cipher - Provides methods for generating, encrypting, and decrypting Nano64 IDs.
Enums§
Functions§
- compare
- Compare compares two IDs as unsigned 64-bit integers.
Returns:
Ordering::Less(if a < b)Ordering::Equal(if a == b)Ordering::Greater(if a > b) - generate
- Generate a new ID using current timestamp and default RNG.
- generate_
at - Generate a new ID using your own timestamp and default RNG.
- generate_
monotonic - Generates a strictly increasing ID using the current timestamp and default RNG.
- generate_
monotonic_ at - Generates a strictly increasing ID using the provided timestamp and default RNG.
- generate_
monotonic_ with - Generates a strictly increasing ID using the provided timestamp and custom RNG.
- generate_
monotonic_ with_ rng - Generates a strictly increasing ID using the current timestamp and a custom RNG.
- generate_
with - Generate a new ID using your own timestamp and RNG.
- generate_
with_ rng - Generate a new ID using the current timestamp and your own RNG.