numid 0.2.9

A macro for generating structures which behave like numerical id.
Documentation
1
2
3
4
5
6
7
8
9
use numid::numid;

numid!(struct Test);

#[test]
fn external() {
    let id = Test::new();
    assert!(id.value() != 0);
}