Constant alloc::heap::EMPTY [] [src]

pub const EMPTY: *mut () = 1 as *mut ()
Deprecated since 1.19

: Use Unique/NonNull::empty() instead

🔬 This is a nightly-only experimental API. (heap_api #27700)

An arbitrary non-null address to represent zero-size allocations.

This preserves the non-null invariant for types like Box<T>. The address may overlap with non-zero-size memory allocations.