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
#[macro_export]
macro_rules! mut_id_ptr {
    ($ptr: expr) => {
        $crate::MutIdPtr::<_, _>::from_mut_ptr($ptr)
    };
    ($marker: ty; $ptr: expr) => {
        $crate::MutIdPtr::<$marker, _>::from_mut_ptr($ptr)
    };
    ($marker: ty; $value: ty; $ptr: expr) => {
        $crate::MutIdPtr::<$marker, $value>::from_mut_ptr($ptr)
    };
}