#id #numbers

id_factory

A library for creating typed or untyped id numbers

2 releases (1 stable)

1.0.0 Nov 5, 2023
0.1.0 Oct 22, 2020

#48 in #number

MIT/Apache

8KB
229 lines

A library for creating typed or untyped id numbers.

Example:

use id_factory::untyped::IdFactory;

let mut factory = IdFactory::new();

let id1 = factory.next_id();
let id2 = factory.next_id();
assert!(id1 != id2);

No runtime deps