Open
Description
This superceded #109736 now that the lazy_cell
feature has been stabilized.
Feature gate: #[feature(lazy_cell_into_inner)]
This is a tracking issue for LazyCell::into_inner
and LazyLock::into_inner
.
Public API
// core::cell (in core/src/cell/lazy.rs)
impl<T, F: FnOnce() -> T> LazyCell<T, F> {
pub const fn into_inner(this: Self) -> Result<T, F>;
}
// std::sync (in std/sync/lazy_lock.rs)
impl<T, F: FnOnce() -> T> LazyLock<T, F> {
pub fn into_inner(this: Self) -> Result<T, F>;
}
Steps / History
- Implementation: Add LazyCell::into_inner #106152
- Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.