8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9677b70 commit 613145fCopy full SHA for 613145f
core/src/option.rs
@@ -137,10 +137,13 @@
137
//!
138
//! [^extern_fn]: this remains true for any argument/return types and any other ABI: `extern "abi" fn` (_e.g._, `extern "system" fn`)
139
140
+//! Under some conditions the above types `T` are also null pointer optimized when wrapped in a [`Result`][result_repr].
141
+//!
142
//! [`Box<U>`]: ../../std/boxed/struct.Box.html
143
//! [`num::NonZero*`]: crate::num
144
//! [`ptr::NonNull<U>`]: crate::ptr::NonNull
145
//! [function call ABI]: ../primitive.fn.html#abi-compatibility
146
+//! [result_repr]: crate::result::Result#Representation
147
148
//! This is called the "null pointer optimization" or NPO.
149
0 commit comments