We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f75dbf commit 79575a1Copy full SHA for 79575a1
library/core/src/option.rs
@@ -83,6 +83,8 @@
83
//! * [`ptr::NonNull<U>`]
84
//! * `#[repr(transparent)]` struct around one of the types in this list.
85
//!
86
+//! This is called the "null pointer optimization" or NPO.
87
+//!
88
//! It is further guaranteed that, for the cases above, one can
89
//! [`mem::transmute`] from all valid values of `T` to `Option<T>` and
90
//! from `Some::<T>(_)` to `T` (but transmuting `None::<T>` to `T`
0 commit comments