uuidcell

Crates.iouuidcell
lib.rsuuidcell
version0.1.0
sourcesrc
created_at2021-08-12 13:21:57.948131
updated_at2021-08-12 13:21:57.948131
descriptionEver needed Hash, not had it, and wanted a free implementation? Yes? Well this is probably not what you really want but enjoy
homepagehttps://gitlab.com/elise/uuidcell
repositoryhttps://gitlab.com/elise/uuidcell
max_upload_size
id435232
size27,205
Elise (EliseZeroTwo)

documentation

README

UuidCell

UuidCell for Hash, supports both no_std (pRNG via oorandom) and std (slightly better pRNG via rand).

Usage

You need to enable one of the following features:

  • no_std
  • std

no_std

Builder

With no_std you need to keep a mutable UuidCellBuilder around. You can call UuidCellBuilder::new() to obtain one, UuidCellBuilder::seed(some u128) to obtain one with a custom seed, then you can call UuidCellBuilder::build::<T>::(inner) to obtain a new UuidCell

std

With std you can just call UuidCell::new(inner)

Commit count: 3

cargo fmt