-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Closed
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Description
Feature gate: #![feature(pin_deref_mut)]
This is a tracking issue for Pin::as_deref_mut
.
The feature adds the method as_deref_mut
to Pin
, which allow a safe transformation from a Pin<&mut Pin<P>>
to a Pin<&mut P::Target>
.
Public API
impl<Ptr> Pin<Ptr> {
pub fn as_deref_mut(self: Pin<&mut Pin<Ptr>>) -> Pin<&mut Ptr::Target>
where
Ptr: DerefMut;
}
Steps / History
- Remove P: Unpin bound on impl Future for Pin #81363
- Put Pin::as_deref_mut in impl Pin<Ptr> / rearrange Pin methods #129449
- Stabilize
Pin::as_deref_mut()
#129424
Unresolved Questions
- None yet.
teor2345
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.