Skip to main content

HeapOption

Type Alias HeapOption 

Source
pub type HeapOption<T> = *const T;
Expand description

Option for heap pointer types — just a nullable pointer. None = null (0x0), Some = non-null pointer. Zero overhead.

This is a type alias to make intent clear in signatures. The actual representation is just *const T.