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::PtrExt, id_ptr, tests::util::MTest, IdPtr};

#[test]
fn to_ptr_id_test() {
    let ptr: *const _ = &1;

    let actual: IdPtr<MTest, i32> = ptr.to_id_ptr();
    let expected = id_ptr!(ptr);
    assert_eq!(actual, expected);
}