This commit is contained in:
parent
939f2671a0
commit
22668e83f6
1 changed files with 3 additions and 0 deletions
|
@ -137,10 +137,13 @@
|
||||||
//!
|
//!
|
||||||
//! [^extern_fn]: this remains true for any argument/return types and any other ABI: `extern "abi" fn` (_e.g._, `extern "system" fn`)
|
//! [^extern_fn]: this remains true for any argument/return types and any other ABI: `extern "abi" fn` (_e.g._, `extern "system" fn`)
|
||||||
//!
|
//!
|
||||||
|
//! Under some conditions the above types `T` are also null pointer optimized when wrapped in a [`Result`][result_repr].
|
||||||
|
//!
|
||||||
//! [`Box<U>`]: ../../std/boxed/struct.Box.html
|
//! [`Box<U>`]: ../../std/boxed/struct.Box.html
|
||||||
//! [`num::NonZero*`]: crate::num
|
//! [`num::NonZero*`]: crate::num
|
||||||
//! [`ptr::NonNull<U>`]: crate::ptr::NonNull
|
//! [`ptr::NonNull<U>`]: crate::ptr::NonNull
|
||||||
//! [function call ABI]: ../primitive.fn.html#abi-compatibility
|
//! [function call ABI]: ../primitive.fn.html#abi-compatibility
|
||||||
|
//! [result_repr]: crate::result::Result#Representation
|
||||||
//!
|
//!
|
||||||
//! This is called the "null pointer optimization" or NPO.
|
//! This is called the "null pointer optimization" or NPO.
|
||||||
//!
|
//!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue