pub open spec fn ptr_null<T: ?Sized + Pointee<Metadata = ()>>() -> *const TExpand description
{
ptr_from_data(PtrData::<T> {
addr: 0,
provenance: Provenance::null(),
metadata: (),
})
}Constructs a null pointer.
NOTE: Trait aliases are not yet supported,
so we use Pointee<Metadata = ()> instead of core::ptr::Thin here