Skip to main content

Crate nano64

Crate nano64 

Source
Expand description

Structs§

EncryptedNano64
Represents an encrypted Nano64 ID.
Nano64
Nano64Cipher
Provides methods for generating, encrypting, and decrypting Nano64 IDs.

Enums§

Nano64Error

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.