Macro ptr_null_of

Source
macro_rules! ptr_null_of {
    ($expr:expr $(,)?) => { ... };
}
Expand description

Creates a pointer whose type matches the expression, but whose value is always NULL.

This is a helper macro, typically used in another macro to help with type inference.

The expression is guaranteed never to be executed, so it can contain arbitrarily unsafe code without causing any soundness problems.