summary refs log tree commit diff
path: root/library/core/src/option.rs
AgeCommit message (Expand)AuthorLines
2023-01-14Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcmYuki Okushi-6/+7
2022-12-13Improve wording for Option and ResultChris AtLee-4/+3
2022-12-13Add docs for question mark operator for OptionChris AtLee-0/+45
2022-11-26add link for string to as_ref docsZachary Mayhew-0/+1
2022-11-26reword Option::as_ref and Option::map examplesZachary Mayhew-6/+6
2022-11-26Auto merge of #103556 - clubby789:specialize-option-partial-eq, r=scottmcmbors-1/+67
2022-11-06Bump version placeholders to releaseMark Rousskov-1/+1
2022-11-01Use `allow_internal_unstable` and add unstable reasonclubby789-2/+2
2022-10-31Specialize PartialEq for Option<num::NonZero*> and Option<ptr::NonNull>clubby789-1/+67
2022-10-25Rollup merge of #98204 - Kixiron:stable-unzip, r=thomccDylan DPC-4/+7
2022-10-01Change feature name to is_some_andCameron Steffen-2/+2
2022-10-01Change is_some_and to take by valueCameron Steffen-5/+8
2022-09-26Improve code example for Option::unwrap_or_defaultGuillaume Gomez-12/+4
2022-09-25Update option.rsGimgim-0/+1
2022-09-23Constify Residual behind const_tryonestacked-1/+2
2022-09-07Use `CURRENT_RUSTC_VERSION`Chase Wilson-1/+1
2022-08-23Add a warning about `Option/Result::and()` being eagerly evaluatedChayim Refael Friedman-0/+6
2022-07-05Fix links in std/core documentationGuillaume Gomez-3/+3
2022-06-17Stabilized Option::unzip()Chase Wilson-4/+7
2022-05-26Rollup merge of #96033 - yaahc:expect-elaboration, r=scottmcmMatthias Krüger-0/+20
2022-05-25fix broken doctestJane Lusby-0/+1
2022-05-25update option and result references to expect message docsJane Lusby-2/+18
2022-05-13Remove some unnecessary `rustc_allow_const_fn_unstable` attributes.Nicholas Nethercote-1/+0
2022-04-30Add `do yeet` expressions to allow experimentation in nightlyScott McMurray-0/+8
2022-04-15update docs for option to crossreference to the result docsJane Lusby-0/+3
2022-04-05trivial cfg(bootstrap) changesPietro Albini-47/+27
2022-03-31Adjust feature names that disagree on const stabilization versionDavid Tolnay-3/+3
2022-03-21Rename `~const Drop` to `~const Destruct`Deadbeef-27/+48
2022-03-18Document that `Option<extern "abi" fn>` discriminant elision applies for any ABIDaniel Henry-Mantilla-1/+3
2022-03-11Rollup merge of #94765 - m-ou-se:is-some-and, r=Dylan-DPCDylan DPC-5/+5
2022-03-10Use implicit capture syntax in format_argsT-O-R-U-S-7/+7
2022-03-09Rollup merge of #91804 - woppopo:const_clone, r=oli-obkMatthias Krüger-1/+5
2022-03-09Rename is_{some,ok,err}_with to is_{some,ok,err}_and.Mara Bos-5/+5
2022-02-12`Option::and_then` basic example: show failurecyqsimon-3/+6
2022-02-10Use 0-based idx for array contentcyqsimon-2/+2
2022-02-10More practical examples for `Option::and_then`cyqsimon-6/+15
2022-02-07Change `ResultShunt` to be generic over `Try`Scott McMurray-2/+2
2022-01-19Fix is_some_with tests.Mara Bos-3/+5
2022-01-18Add is_some_with tracking issue number.Mara Bos-1/+1
2022-01-18Add Option::is_some_with.Mara Bos-0/+21
2022-01-09eplace usages of vec![].into_iter with [].into_iterLucas Kent-5/+5
2022-01-03Move `contains` method of Option and Result lower in docsDavid Tolnay-30/+30
2021-12-30Consolidate impl Option<&mut T>David Tolnay-4/+5
2021-12-30Consolidate impl Option<&T>David Tolnay-28/+29
2021-12-30Move Option::as_deref_mutDavid Tolnay-28/+26
2021-12-30Move Option::as_derefDavid Tolnay-28/+26
2021-12-30Move Option::unwrap_or_defaultDavid Tolnay-41/+39
2021-12-21Use panic() instead of panic!() in some places in core.Mara Bos-2/+4
2021-12-17Point to the tracking issueDeadbeef-28/+28
2021-12-17Constify (most) `Option` methodsDeadbeef-51/+191