# Function std::intrinsics::option_payload_ptr

source ·

    pub unsafe extern "rust-intrinsic" fn option_payload_ptr<T>(
        arg: *const Option<T>
    ) -> *const T

🔬This is a nightly-only experimental API. (`core_intrinsics`)
Expand description

This method creates a pointer to any `Some` value. If the argument is `None`, an invalid within-bounds pointer (that is still acceptable for constructing an empty slice) is returned.