Skip to content

The Index of Result is outdated as it's missing some functions #138966

New issue

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

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

Already on GitHub? # to your account

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

The Index of Result is outdated as it's missing some functions #138966

Natural-selection1 opened this issue Mar 26, 2025 · 0 comments · Fixed by #138968
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

Location

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

Summary

Querying the variant : miss is_ok_and and is_err_and
Extracting contained values : miss unwrap_unchecked and unwrap_err_unchecked
And miss inspect and inspect_err

This issue and #138955 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 a353796 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#138968 - Natural-selection1:update-Result-doc, r=Amanieu

Update the index of Result to make the summary more comprehensive

fix rust-lang#138966

This PR and rust-lang#138957 are twin PR

r? `@Amanieu`
@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
# for free to join this conversation on GitHub. Already have an account? # 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