scriptorium/utils/uniqid

Types

Unique ID generator.

pub opaque type Generator

A unique ID.

pub type UniqID =
  BigInt

Functions

pub fn get(gen: Generator) -> #(BigInt, Generator)

Get a unique ID and a new generator, that can be used to generate a new ID.

pub fn new() -> Generator

Get a new generator.

Search Document