We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 939f267 commit 22668e8Copy full SHA for 22668e8
library/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