Tracking Issue for const_option_ext
· Issue #91930 · rust-lang/rust
Navigation Menu
- [GitHub Copilot
Write better code with AI](https://github.com/features/copilot)
- [GitHub Copilot
[GitHub Advanced Security
Find and fix vulnerabilities](https://github.com/security/advanced-security)[Actions
Automate any workflow](https://github.com/features/actions)[Codespaces
Instant dev environments](https://github.com/features/codespaces)[Issues
Plan and track work](https://github.com/features/issues)[Code Review
Manage code changes](https://github.com/features/code-review)[Discussions
Collaborate outside of code](https://github.com/features/discussions)[Code Search
Find more, search less](https://github.com/features/code-search)Explore
- [GitHub Sponsors
Fund open source developers](https://github.com/sponsors)
- [GitHub Sponsors
[The ReadME Project
GitHub community articles](https://github.com/readme)- [Enterprise platform
AI-powered developer platform](https://github.com/enterprise)
- [Enterprise platform
Use saved searches to filter your results more quickly
Description
Feature gate: #![feature(const_option_ext)]
This is a tracking issue for option methods.
Public API
// core::option
impl<T> Option<T> {
pub const fn as_pin_ref(self: Pin<&Self>) -> Option<Pin<&T>>;
pub const fn as_pin_mut(self: Pin<&mut Self>) -> Option<Pin<&mut T>>;
pub const fn as_slice(&self) -> &[T];
pub const fn as_mut_slice(&mut self) -> &mut [T];
}
Steps / History
- Implementation: Constify (most)
Option
methods #91928 - Final comment period (FCP)
- Stabilization PR: stabilize const_option_ext #132966
Unresolved Questions
- None yet.
Metadata
Metadata
Development
No branches or pull requests