about summary refs log tree commit diff
path: root/library/core/src/option.rs
AgeCommit message (Expand)AuthorLines
2023-03-28Auto merge of #108095 - soc:drop-contains, r=Amanieubors-30/+0
2023-03-26Auto merge of #109357 - saethlin:inline-as-deref, r=thomccbors-0/+2
2023-03-19Add #[inline] to as_derefBen Kimock-0/+2
2023-03-18move Option::as_slice to intrinsicAndre Bogus-72/+36
2023-03-12Clarify the text of some commentsScott McMurray-1/+5
2023-03-11Move `Option::as_slice` to an always-sound implementationScott McMurray-37/+79
2023-03-01Add `Option::as_slice`(`_mut`)Andre Bogus-0/+119
2023-02-15Drop unstable `Option::contains`, `Result::contains`, `Result::contains_err`soc-30/+0
2023-02-03nit fixedAme-1/+1
2023-02-03Clarifying that .map() returns None if None.Ame-2/+4
2023-01-27Link to the LLVM issue from a comment on `SpecOptionPartialEq`Scott McMurray-0/+6
2023-01-18Implement `SpecOptionPartialEq` for `cmp::Ordering`Scott McMurray-1/+9
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