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