summary refs log tree commit diff
path: root/library/core/src/option.rs
AgeCommit message (Expand)AuthorLines
2021-05-29Mention "null pointer optimization" in option docs.Jacob Hoffman-Andrews-0/+2
2021-05-19#[cfg(bootstrap)] out the v1 try_trait stuffScott McMurray-0/+2
2021-05-18Rollup merge of #85425 - mbartlett21:patch-1, r=scottmcmJack Huey-1/+1
2021-05-18Fix must_use on `Option::is_none`mbartlett21-1/+1
2021-05-06Perf Experiment: Wait, what if I just skip the trait aliasScott McMurray-1/+1
2021-05-06Bootstrapping preparation for the libraryScott McMurray-1/+1
2021-04-27Reorder the parameter descriptions of map_or and map_or_elseDan Zwell-4/+4
2021-04-26Auto merge of #84092 - scottmcm:try_trait_initial, r=yaahc,m-ou-sebors-2/+31
2021-04-19Clarify the difference between insert and get_or_insertAleksey Kladov-29/+35
2021-04-17Add the try_trait_v2 library basicsScott McMurray-2/+31
2021-04-11Stabilize option_insert.Mara Bos-3/+1
2021-03-14Remove Option::{unwrap_none, expect_none}.Mara Bos-93/+1
2021-03-10Rename Option::get_or_insert_defaultCameron Steffen-17/+17
2021-03-08Add Option::get_or_defaultCameron Steffen-0/+28
2021-03-07Rollup merge of #82130 - jhpratt:const-option-result, r=RalfJungYuki Okushi-4/+9
2021-03-06Make some Option, Result methods unstably constJacob Pratt-4/+9
2021-02-12[librustdoc] Reform lang string token splittingCasey Rodarmor-4/+4
2021-01-25Add tracking issueMiguel Ojeda-1/+1
2021-01-25Link the reference about undefined behaviorMiguel Ojeda-1/+3
2021-01-10Add `SAFETY` annotationsMiguel Ojeda-0/+1
2021-01-10Add `unwrap_unchecked()` methods for `Option` and `Result`Miguel Ojeda-0/+31
2020-12-31Remove many unnecessary manual link resolves from libraryCamelid-2/+0
2020-12-10Improve wording of `flatten()` docsCamelid-1/+5
2020-10-23add tracking issue number to option_insert feature gateCanop-1/+1
2020-10-23Update library/core/src/option.rsCanop-4/+0
2020-10-23Update library/core/src/option.rsCanop-0/+2
2020-10-23fix naming unconsistency between function doc and prototypeCanop-9/+8
2020-10-23more tests in option.insert, code cleaning in optionCanop-12/+17
2020-10-23remove `option.insert_with`Canop-19/+1
2020-10-23add `insert` and `insert_with` to `Option`Canop-0/+46
2020-10-15Deny broken intra-doc links in linkcheckerJoshua Nelson-0/+1
2020-10-08Fix intra-doc links in `core`Camelid-0/+3
2020-09-26Rollup merge of #75454 - ltratt:option_optimisation_guarantees, r=dtolnayRalf Jung-4/+17
2020-09-20Stabilize some Option methods as constCDirkx-3/+3
2020-09-18Fixed some intra-docs links in library/coreAmjad Alsharafi-2/+0
2020-08-26apply bootstrap cfgsPietro Albini-2/+2
2020-08-17Grammar tweak.Laurence Tratt-4/+4
2020-08-17Rename the types for clarity.Laurence Tratt-5/+5
2020-08-16hir: introduce lang items for AST loweringDavid Wood-0/+2
2020-08-15Remove unnecessary intra-doc linkCamelid-1/+0
2020-08-15Fix linkCamelid-0/+2
2020-08-14Switch to intra-doc links in `core::option`Camelid-92/+23
2020-08-12Add Rust function pointers.Laurence Tratt-1/+1
2020-08-12Change notation.Laurence Tratt-2/+2
2020-08-12Be clearer about Some/None transmute.Laurence Tratt-2/+3
2020-08-12Be clear about the reverse `transmute` guarantees.Laurence Tratt-2/+3
2020-08-12Clarify and add guarantee about `transmute`.Laurence Tratt-3/+6
2020-08-12Explicitly document the size guarantees that Option makes.Laurence Tratt-4/+12
2020-07-30Make `Option::unwrap` unstably constDylan MacKenzie-1/+2
2020-07-27mv std libs to library/mark-0/+1740