Tracking Issue for #![feature(downcast_unchecked)] (original) (raw)
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.