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
#[macro_export]
macro_rules! usize_id {
    ($id: expr) => {
        $crate::UsizeId::<_>::from_usize($id)
    };
    ($marker: ty; $id: expr) => {
        $crate::UsizeId::<$marker>::from_usize($id)
    };
}