#tokens #unique #equals

unique-token

Create unique tokens

3 unstable releases

0.2.0 May 10, 2022
0.1.1 Apr 23, 2022
0.1.0 Apr 23, 2022

#18 in #equals

MIT/Apache

7KB

Unique-Token

Create unique tokens.

Example

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());

Documentation

Documentation


lib.rs:

This crate provides a unique token type.

No runtime deps