combid 0.5.2

Generate numeric identifiers

Crate combid [] [src]

Generates numeric identifiers.

Structs

Generator

Iterator which will generate combids using a thread-local RNG.

TimeGenerator

Iterator which will generate identifiers based in the current time.

Enums

Error

Functions

gen

Generates a Combid (Combined Identifier), a combination of a timestamp and some random bits. The timestamp ensures they are ordered chronologically, and the random bits ensure that each ID is unique, even if thousands of people are creating IDs at the same time.

gen_timeid

Generates an identifier based in the current time.