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.
transmute
1 parent f5118a5 commit 83f47aaCopy full SHA for 83f47aa
library/core/src/option.rs
@@ -83,8 +83,9 @@
83
//! * [`ptr::NonNull<T>`]
84
//! * `#[repr(transparent)]` struct around one of the types in this list.
85
//!
86
-//! For the above cases, it is guaranteed that one can use [`mem::transmute`]
87
-//! between `T` and `Option<T>` and vice versa.
+//! For the above cases, it is guaranteed that one can [`mem::transmute`]
+//! from all valid values of `T` to `Option<T>` but only from non-`None`
88
+//! Option<T>` to `T`.
89
90
//! # Examples
91
0 commit comments