-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
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.
Description
Feature gate: #![feature(downcast_unchecked)]
This is a tracking issue for the downcast_unchecked
, downcast_ref_unchecked
, and downcast_mut_unchecked
methods.
Public API
impl dyn Any (+ Send + Sync) {
pub unsafe fn downcast_ref_unchecked<T: Any>(&self) -> &T;
pub unsafe fn downcast_mut_unchecked<T: Any>(&mut self) -> &mut T;
}
impl<A: Allocator> Box<dyn Any (+ Send + Sync), A> {
pub unsafe fn downcast_unchecked<T: Any>(&self) -> Box<T, A>;
}
Steps / History
- Implementation: Add unchecked downcast methods #90851
- Final comment period (FCP)
- Stabilization PR
Unresolved Questions
- None yet.
lunabunn, gtsiam, stepancheg, dest1n1s, revers3ntropy and 6 morebjoernager, Bromeon and user0-07161wfraser and acheroncryptoryoqun and acheroncrypto
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.