Crates.io | typid |
lib.rs | typid |
version | 1.1.1 |
source | src |
created_at | 2019-11-23 20:25:57.538989 |
updated_at | 2021-10-17 22:46:25.980806 |
description | (Typ)ed Unique (Id)entifiers |
homepage | https://github.com/PsichiX/typid |
repository | https://github.com/PsichiX/typid |
max_upload_size | |
id | 183797 |
size | 6,483 |
Cargo.toml
[dependencies]
typid = "1"
use typid::ID;
struct Foo {
pub id: ID<Foo>,
}
fn main() {
let a = Foo { id: ID::new() };
let b = Foo { id: ID::new() };
assert_ne!(a.id, b.id);
}