On this page
Function std::intrinsics::option_payload_ptr
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
)
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.
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/intrinsics/fn.option_payload_ptr.html