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

fn main() {
    const _CONST: Test = Test::const_create_lower(101); //~ ERROR any use of this value will cause an error
}