corrected reference from pin_utils to pin_project
This commit is contained in:
@@ -419,7 +419,7 @@ makes sense. Once the data is allocated on the heap it will have a stable addres
|
||||
<p>There is no need for us as users of the API to take special care and ensure
|
||||
that the self-referential pointer stays valid.</p>
|
||||
<p>There are ways to safely give some guarantees on stack pinning as well, but right
|
||||
now you need to use a crate like <a href="https://github.com/rust-lang/rfcs/blob/master/text/2349-pin.md">pin_utils</a>:<a href="https://github.com/rust-lang/rfcs/blob/master/text/2349-pin.md">pin_utils</a> to do that.</p>
|
||||
now you need to use a crate like <a href="https://docs.rs/pin-project/">pin_project</a> to do that.</p>
|
||||
<h3><a class="header" href="#projectionstructural-pinning" id="projectionstructural-pinning">Projection/structural pinning</a></h3>
|
||||
<p>In short, projection is a programming language term. <code>mystruct.field1</code> is a
|
||||
projection. Structural pinning is using <code>Pin</code> on fields. This has several
|
||||
|
||||
@@ -1175,7 +1175,7 @@ makes sense. Once the data is allocated on the heap it will have a stable addres
|
||||
<p>There is no need for us as users of the API to take special care and ensure
|
||||
that the self-referential pointer stays valid.</p>
|
||||
<p>There are ways to safely give some guarantees on stack pinning as well, but right
|
||||
now you need to use a crate like <a href="https://github.com/rust-lang/rfcs/blob/master/text/2349-pin.md">pin_utils</a>:<a href="https://github.com/rust-lang/rfcs/blob/master/text/2349-pin.md">pin_utils</a> to do that.</p>
|
||||
now you need to use a crate like <a href="https://docs.rs/pin-project/">pin_project</a> to do that.</p>
|
||||
<h3><a class="header" href="#projectionstructural-pinning" id="projectionstructural-pinning">Projection/structural pinning</a></h3>
|
||||
<p>In short, projection is a programming language term. <code>mystruct.field1</code> is a
|
||||
projection. Structural pinning is using <code>Pin</code> on fields. This has several
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -290,7 +290,7 @@ There is no need for us as users of the API to take special care and ensure
|
||||
that the self-referential pointer stays valid.
|
||||
|
||||
There are ways to safely give some guarantees on stack pinning as well, but right
|
||||
now you need to use a crate like [pin_utils]:[pin_utils] to do that.
|
||||
now you need to use a crate like [pin_project][pin_project] to do that.
|
||||
|
||||
### Projection/structural pinning
|
||||
|
||||
@@ -311,5 +311,5 @@ This is exactly what we'll do when we implement our own `Futures` stay tuned,
|
||||
we're soon finished.
|
||||
|
||||
[rfc2349]: https://github.com/rust-lang/rfcs/blob/master/text/2349-pin.md
|
||||
[pin_utils]: https://github.com/rust-lang/rfcs/blob/master/text/2349-pin.md
|
||||
[pin_project]: https://docs.rs/pin-project/
|
||||
[internals_unpin]: https://internals.rust-lang.org/t/naming-pin-anchor-move/6864/12
|
||||
Reference in New Issue
Block a user