File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 171
171
//!
172
172
//! # Projections and Structural Pinning
173
173
//!
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>`)?
179
180
//!
180
181
//! Having a pinning projection for some field means that pinning is "structural":
181
182
//! when the wrapper is pinned, the field must be considered pinned, too.
You can’t perform that action at this time.
0 commit comments