You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rust: add functions to pin UniqueRef and convert it to Ref.
This allows us to initialise without the need for closures (which has
simpler syntax) by using the following sequence:
1. Create a `UniqueRef`
2. Initialise all fields that don't need pinning
3. Convert `UniqueRef` to `Pin<UniqueRef>`
4. Initialise all fields that require pinning
5. Convert `Pin<UniqueRef>` to `Ref`
The next patch converts all users of `Ref::try_new_and_init` and
`RefUnique::pin_init_and_share` to use parts of the sequence above.
Signed-off-by: Wedson Almeida Filho <[email protected]>
0 commit comments