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
use crate::{ext::I32Ext, i32_id as id, tests::util::MTest, I32Id};

#[test]
fn to_i32_id_test() {
    let i32 = 1i32;

    let actual: I32Id<MTest> = i32.to_i32_id();
    let expected = id!(i32);
    assert_eq!(actual, expected);
}