Crates.io | unique-token |
lib.rs | unique-token |
version | 0.2.0 |
source | src |
created_at | 2022-04-23 15:21:27.559527 |
updated_at | 2022-05-10 11:00:53.064699 |
description | Create unique tokens |
homepage | https://github.com/alvra/unique-token |
repository | https://github.com/alvra/unique-token |
max_upload_size | |
id | 572686 |
size | 15,815 |
Create unique tokens.
use unique_token::Unique;
let x = Unique::new();
let y = Unique::new();
// different tokens are unequal
assert_ne!(x, y);
// clones are equal
assert_eq!(x, x.clone());
assert_eq!(y, y.clone());