| Crates.io | typid |
| lib.rs | typid |
| version | 1.1.2 |
| created_at | 2019-11-23 20:25:57.538989+00 |
| updated_at | 2025-02-13 19:04:02.376752+00 |
| description | (Typ)ed Unique (Id)entifiers |
| homepage | https://github.com/PsichiX/typid |
| repository | https://github.com/PsichiX/typid |
| max_upload_size | |
| id | 183797 |
| size | 14,577 |
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);
}