Update library/core/src/pin.rs
Co-authored-by: Ralf Jung <post@ralfj.de>
This commit is contained in:
parent
b1830f130a
commit
df6d44961d
@ -790,7 +790,7 @@
|
|||||||
//!
|
//!
|
||||||
//! Structural pinning comes with a few extra requirements:
|
//! Structural pinning comes with a few extra requirements:
|
||||||
//!
|
//!
|
||||||
//! 1. *Structural [`Unpin`].* A struct can be [`Unpin`] if, and only if, all of its
|
//! 1. *Structural [`Unpin`].* A struct can be [`Unpin`] only if all of its
|
||||||
//! structurally-pinned fields are, too. This is [`Unpin`]'s behavior by default.
|
//! structurally-pinned fields are, too. This is [`Unpin`]'s behavior by default.
|
||||||
//! However, as a libray author, it is your responsibility not to write something like
|
//! However, as a libray author, it is your responsibility not to write something like
|
||||||
//! <code>impl\<T> [Unpin] for Struct\<T> {}</code> and then offer a method that provides
|
//! <code>impl\<T> [Unpin] for Struct\<T> {}</code> and then offer a method that provides
|
||||||
|
Loading…
Reference in New Issue
Block a user