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 3040380 commit c774bc6Copy full SHA for c774bc6
src/libcore/pin.rs
@@ -36,7 +36,9 @@
36
//!
37
//! However, these restrictions are usually not necessary. Many types are always freely
38
//! movable, even when pinned, because they do not rely on having a stable address.
39
-//! These types implement the [`Unpin`] auto-trait, which
+//! This includes all the basic types (`bool`, `i32` and friends, references)
40
+//! as well as types consisting solely of these types.
41
+//! Types that do not care about pinning implement the [`Unpin`] auto-trait, which
42
//! nullifies the effect of [`Pin`]. For `T: Unpin`, `Pin<Box<T>>` and `Box<T>` function
43
//! identically, as do `Pin<&mut T>` and `&mut T`.
44
0 commit comments