about summary refs log tree commit diff
path: root/library/core/src/option.rs
AgeCommit message (Expand)AuthorLines
2023-11-18Auto merge of #117525 - GKFX:remove_option_payload_ptr, r=petrochenkovbors-3/+2
2023-11-17Rollup merge of #115476 - RalfJung:abi-compat-docs, r=Mark-SimulacrumMatthias Krüger-3/+4
2023-11-16Remove option_payload_ptr; redundant to offset_ofGeorge Bateman-3/+2
2023-11-15Substitute version placeholdersMark Rousskov-2/+2
2023-11-13Auto merge of #116866 - slanterns:inspect-stabilize, r=BurntSushibors-7/+2
2023-11-04document ABI compatibilityRalf Jung-3/+4
2023-11-03Auto merge of #115333 - joshlf:patch-5, r=RalfJungbors-9/+15
2023-10-18Stabilize `result_option_inspect`Slanterns-7/+2
2023-10-16Add `#[track_caller]` to `Option::unwrap_or_else`DaniPopes-0/+1
2023-10-14Guarantee representation of None in NPOJoshua Liebow-Feeser-9/+15
2023-10-06Reuse existing `Some`s in `Option::(x)or`Scott McMurray-4/+4
2023-09-28stabilize `Option::as_`(`mut_`)`slice`Andre Bogus-12/+2
2023-08-15Add alignment to the NPO guaranteeScott McMurray-1/+1
2023-08-07Rollup merge of #98935 - kellerkindt:option_retain, r=Mark-SimulacrumMatthias Krüger-0/+35
2023-08-03Implement Option::take_ifMichael Watzko-0/+35
2023-07-30Mark `map_or` as `#[must_use]`Maybe Waffle-0/+1
2023-06-04Rollup merge of #109093 - Dante-Broggi:patch-2, r=joshtriplettMatthias Krüger-0/+1
2023-05-18Option::map_or_else: Show an example of integrating with ResultColin Walters-1/+20
2023-05-06Remove unneeded calls to `mem::forget`John Bobbo-4/+2
2023-04-29Remove unneeded function call in `core::option`.John Bobbo-6/+2
2023-04-28handle cfg(bootstrap)Pietro Albini-15/+1
2023-04-28replace version placeholdersPietro Albini-1/+1
2023-04-16core is now compilableDeadbeef-100/+27
2023-04-16rm const traits in libcoreDeadbeef-64/+56
2023-04-06Stabilize is_some_andJonas Platte-3/+1
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-13add `#[doc(alias="flatmap")]` to `Option::and_then`Dante Broggi-0/+1
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