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::UsizeExt, tests::util::MTest, usize_id as id, UsizeId};

#[test]
fn to_usize_id_test() {
    let usize = 1usize;

    let actual: UsizeId<MTest> = usize.to_usize_id();
    let expected = id!(usize);
    assert_eq!(actual, expected);
}