Skip to content

The Index of Option is outdated as it's missing some functions #138955

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Natural-selection1 opened this issue Mar 26, 2025 · 0 comments · Fixed by #138957
Closed

The Index of Option is outdated as it's missing some functions #138955

Natural-selection1 opened this issue Mar 26, 2025 · 0 comments · Fixed by #138957
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools A-result-option Area: Result and Option combinators T-libs Relevant to the library team, which will review and decide on the PR/issue.

Comments

@Natural-selection1
Copy link
Contributor

Natural-selection1 commented Mar 26, 2025

Location

https://doc.rust-lang.org/std/option/index.html

Summary

Querying the variant : miss is_some_and and is_none_or
Adapters for working with references: miss as_slice and as_mut_slice
Extracting the contained value: miss unwrap_unchecked
And miss inspect

This issue and #138966 are twin issues

@Natural-selection1 Natural-selection1 added the A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools label Mar 26, 2025
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Mar 26, 2025
@lolbinarycat lolbinarycat added the A-result-option Area: Result and Option combinators label Mar 27, 2025
@bors bors closed this as completed in 59191fa Apr 25, 2025
rust-timer added a commit to rust-lang-ci/rust that referenced this issue Apr 25, 2025
Rollup merge of rust-lang#138957 - Natural-selection1:update-Option-doc, r=Amanieu

Update the index of Option to make the summary more comprehensive

fix: rust-lang#138955

This PR and rust-lang#138968 are twin PR

By the way, this is my first time contributing to rust, and I'm not a native English speaker, so any suggestions—whether about the wording in the docs or the contribution process itself—would be greatly appreciated!
@jieyouxu jieyouxu added T-libs Relevant to the library team, which will review and decide on the PR/issue. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools A-result-option Area: Result and Option combinators T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants