id_sys 0.1.0

Provides data structures which can be marked such that they only work with similarly marked integer data types.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::{i32_id, tests::util::MTest, I32Id};

#[test]
fn i32_id_0_test() {
    let actual: I32Id<MTest> = i32_id!(1);
    let expected = I32Id::from_i32(1);
    assert_eq!(actual, expected);
}

#[test]
fn i32_id_1_test() {
    let actual: I32Id<MTest> = i32_id!(MTest; 1);
    let expected = I32Id::from_i32(1);
    assert_eq!(actual, expected);
}