summary refs log tree commit diff
path: root/library/core/src/option.rs
AgeCommit message (Expand)AuthorLines
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
2021-12-13core: minor `Option` doc correctionAndy Russell-2/+2
2021-12-12Revert "Auto merge of #89450 - usbalbin:const_try_revert, r=oli-obk"Deadbeef-1/+3
2021-12-11Rollup merge of #91737 - Manishearth:panic-immediate-stdlib, r=joshtriplettMatthias Krüger-1/+2
2021-12-11Rollup merge of #90741 - mbartlett21:patch-4, r=dtolnayMatthias Krüger-4/+19
2021-12-10inline Option panics on panic_immediate_abortManish Goregaokar-1/+2
2021-12-06Add tracking issue numbermbartlett21-2/+2
2021-12-03Auto merge of #91286 - scottmcm:residual-trait, r=joshtriplettbors-0/+5
2021-12-03Rollup merge of #90269 - woppopo:const_option_expect, r=yaahcMatthias Krüger-2/+3
2021-12-02Make array::{try_from_fn, try_map} and Iterator::try_find generic over TryScott McMurray-0/+5
2021-11-28add `Option::inspect` and `Result::{inspect, inspect_err}`Ibraheem Ahmed-0/+25
2021-11-10Formatmbartlett21-2/+8
2021-11-10Rename `Option::cloned` gatembartlett21-2/+2
2021-11-10Make `Option::cloned` const fn.mbartlett21-4/+13
2021-10-31Rollup merge of #89951 - ojeda:stable-unwrap_unchecked, r=dtolnayMatthias Krüger-3/+1
2021-10-31Rollup merge of #89897 - jkugelman:must-use-core, r=joshtriplettMatthias Krüger-0/+1
2021-10-30Add #[must_use] to remaining core functionsJohn Kugelman-0/+1
2021-10-26Make `Option::expect` constwoppopo-2/+3
2021-10-20Stabilize `option_result_unwrap_unchecked`Miguel Ojeda-3/+1
2021-10-18Make more `From` impls `const`woppopo-4/+7
2021-10-17Make Option::as_mut constwoppopo-1/+2
2021-10-11Add #[must_use] to as_type conversionsJohn Kugelman-0/+2
2021-10-10Add #[must_use] to conversions that move selfJohn Kugelman-0/+2
2021-10-03Rollup merge of #86828 - lambinoo:67441-const-fn-copied-take-replace, r=josht...Manish Goregaokar-7/+16
2021-10-02Make diangostic item names consistentCameron Steffen-1/+1
2021-10-02Revert "Auto merge of #86853 - usbalbin:const_try, r=oli-obk"Albin Hedman-4/+2
2021-09-30Auto merge of #86853 - usbalbin:const_try, r=oli-obkbors-2/+4
2021-09-25Auto merge of #88343 - steffahn:fix_code_spacing, r=jyn514bors-26/+35
2021-09-25Apply 16 commits (squashed)Frank Steffahn-26/+35
2021-09-15Add tracking issueAlbin Hedman-2/+2
2021-09-15Constly impl TryV2 and Residual for OptionAlbin Hedman-2/+4
2021-09-04Clarify what “a container” is in `FromIterator<Option<A>> for Option<V>` ...Kevin Reid-2/+2
2021-09-04Add sentence punctuation and links in `Option` docs.Kevin Reid-5/+5
2021-09-04“Moves” instead of “copies” in `<Option<T> as From<T>>::from` doc.Kevin Reid-1/+1
2021-08-30use `unwrap_unchecked` where possibleibraheemdev-5/+2
2021-08-29const fn for option copied, take & replace + testsLamb-7/+16
2021-08-21Remove the `TryV2` aliasScott McMurray-1/+1
2021-08-17Constified `Default` implementationsDeadbeef-1/+2
2021-08-09Added tracking issue to unstable attributeChase Wilson-1/+1
2021-08-09Enabled unzip_option feature for core tests & unzip docsChase Wilson-0/+2
2021-08-09Added the `Option::unzip()` methodChase Wilson-0/+25
2021-08-01Add documentation for the order of Option and ResultAnton Golov-0/+13