Closed
Description
Feature gate: #![feature(const_option_cloned)]
This is a tracking issue for constifying the Option::cloned
functions.
This is only constifying existing apis, not adding new ones
Public API
// core::option
impl<T> Option<&T> {
const fn cloned(self) -> Option<T>
where
T: ~const Clone;
}
impl<T> Option<&mut T> {
const fn cloned(self) -> Option<T>
where
T: ~const Clone;
}
Steps / History
- Implementation: Const
Option::cloned
#90741 - Final comment period (FCP)
- Stabilization PR
Unresolved Questions
- None yet.