File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 171171//!
172172//! # Projections and Structural Pinning
173173//!
174- //! One interesting question arises when considering the interaction of pinning and
175- //! the fields of a struct. When can a struct have a "pinning projection", i.e.,
176- //! an operation with type `fn(Pin<&Struct>) -> Pin<&Field>`?
177- //! In a similar vein, when can a generic wrapper type (such as `Vec<T>`, `Box<T>`, or `RefCell<T>`)
178- //! have an operation with type `fn(Pin<&Wrapper<T>>) -> Pin<&T>`?
174+ //! One interesting question arises when considering the interaction of pinning
175+ //! and the fields of a struct. When can a struct have a "pinning projection",
176+ //! i.e., an operation with type `fn(Pin<&Struct>) -> Pin<&Field>`? In a
177+ //! similar vein, when can a generic wrapper type (such as `Vec<T>`, `Box<T>`,
178+ //! or `RefCell<T>`) have an operation with type `fn(Pin<&Wrapper<T>>) ->
179+ //! Pin<&T>` (or similarly `fn(Pin<&mut Wrapper<T>>) -> Pin<&mut T>`)?
179180//!
180181//! Having a pinning projection for some field means that pinning is "structural":
181182//! when the wrapper is pinned, the field must be considered pinned, too.
You can’t perform that action at this time.
0 commit comments