Skip to content

Commit c774bc6

Browse files
committed
examples
1 parent 3040380 commit c774bc6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libcore/pin.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
//!
3737
//! However, these restrictions are usually not necessary. Many types are always freely
3838
//! movable, even when pinned, because they do not rely on having a stable address.
39-
//! These types implement the [`Unpin`] auto-trait, which
39+
//! 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
4042
//! nullifies the effect of [`Pin`]. For `T: Unpin`, `Pin<Box<T>>` and `Box<T>` function
4143
//! identically, as do `Pin<&mut T>` and `&mut T`.
4244
//!

0 commit comments

Comments
 (0)