1 2 3 4 5 6 7 8 9 10 11
use typenum::assert_type_eq; #[macro_export] macro_rules! forbid_void { ($other:ty) => {assert!(TypeId::of::<$other>() == TypeId::of::<crate::unsafe_std::ptrs::void::void>(), "void is not allowed in this context")}; } pub enum PtrState { Val, Null }