rust/library/core/src
nils caae551ecb
Rollup merge of #106434 - clubby789:document-sum-result, r=the8472
Document `Iterator::sum/product` for Option/Result

Closes #105266

We already document the similar behavior for `collect()` so I believe it makes sense to add this too. The Option/Result implementations *are* documented on their respective pages and the page for `Sum`, but buried amongst many other trait impls which doesn't make it very discoverable.

`````@rustbot````` label +A-docs
2023-03-21 13:00:21 +01:00
..
alloc Clarify new_size for realloc means bytes 2023-02-09 23:56:20 -08:00
array Merge two different equality specialization traits in core 2023-03-01 14:42:06 -08:00
async_iter use consistent terminology 2022-10-29 09:23:12 +02:00
cell Add OnceCell<T>: !Sync impl for diagnostics 2023-01-19 20:14:21 +01:00
char Auto merge of #105671 - lukas-code:depreciate-char, r=scottmcm 2023-02-12 11:09:06 +00:00
cmp Merge two different equality specialization traits in core 2023-03-01 14:42:06 -08:00
convert Add examples section which demonstrates the behaviour (specifically the sign positive aspect) 2023-03-09 20:44:11 +00:00
ffi Bump version placeholders 2023-03-15 08:55:22 -04:00
fmt Auto merge of #108862 - Mark-Simulacrum:bootstrap-bump, r=pietroalbini 2023-03-17 19:00:38 +00:00
future Remove identity_future indirection 2023-03-08 15:37:14 +01:00
hash Rollup merge of #109287 - scottmcm:hash-slice-size-of-val, r=oli-obk 2023-03-18 12:04:24 +01:00
intrinsics Fix wrong crate name in custom MIR docs 2023-03-19 18:27:40 +01:00
iter Rollup merge of #106434 - clubby789:document-sum-result, r=the8472 2023-03-21 13:00:21 +01:00
macros Use Edition 2021 :pat in matches macro 2023-03-06 21:21:06 +01:00
mem stage-step cfgs 2023-01-30 13:09:09 -05:00
net Bump version placeholders 2023-03-15 08:55:22 -04:00
num Auto merge of #108717 - TDecki:dec2flt-inline, r=thomcc 2023-03-21 04:55:02 +00:00
ops Bump to latest beta 2023-03-15 08:55:22 -04:00
panic Replace libstd, libcore, liballoc in line comments. 2022-12-30 14:00:42 +01:00
prelude Replace libstd, libcore, liballoc in docs. 2022-12-30 14:00:40 +01:00
ptr Improved implementation and comments after code review feedback 2023-03-14 22:24:28 -07:00
slice Switch impls of is_sorted_by between slices and slice iters 2023-03-17 18:10:21 +00:00
str Auto merge of #105117 - pitaj:debug_asserts, r=the8472 2023-03-05 19:35:44 +00:00
sync Bump to latest beta 2023-03-15 08:55:22 -04:00
task Inline Poll methods 2023-02-13 14:17:45 +08:00
unicode Replace libstd, libcore, liballoc in line comments. 2022-12-30 14:00:42 +01:00
any.rs Match unmatched backticks in library/ 2023-03-03 03:03:29 +01:00
arch.rs move core::arch into separate file 2022-11-20 10:28:14 +01:00
ascii.rs Inline <EscapeDefault as Iterator>::next 2022-03-10 15:35:22 +01:00
asserting.rs [RFC 2011] Library code 2022-05-22 07:18:32 -03:00
bool.rs Add missing assertion 2022-09-22 02:12:06 -04:00
borrow.rs Minor grammar nit. 2022-12-12 16:22:01 -07:00
cell.rs Rollup merge of #106921 - madsmtm:cell-memory-layout, r=dtolnay 2023-03-10 19:59:17 +01:00
clone.rs Make some trivial functions #[inline(always)] 2022-12-07 17:11:17 +01:00
cmp.rs Merge two different equality specialization traits in core 2023-03-01 14:42:06 -08:00
default.rs cfg-step code 2022-11-06 17:21:21 -05:00
error.md Small round of typo fixes 2022-11-04 20:06:18 -07:00
error.rs Bump to latest beta 2023-03-15 08:55:22 -04:00
hint.rs clarify correctness of black_box 2023-02-15 16:22:08 +00:00
internal_macros.rs ignore a doctest for the non-exported macro 2022-05-03 18:33:56 +09:00
intrinsics.rs Improved implementation and comments after code review feedback 2023-03-14 22:24:28 -07:00
lib.rs Mark DoubleEndedIterator as #[const_trait] using rustc_do_not_const_check, implement const Iterator and DoubleEndedIterator for Range. 2023-03-18 09:17:37 +01:00
marker.rs Bump to latest beta 2023-03-15 08:55:22 -04:00
option.rs Clarify the text of some comments 2023-03-12 16:30:51 -07:00
panic.rs Replace libstd, libcore, liballoc in docs. 2022-12-30 14:00:40 +01:00
panicking.rs Don't allow new const panic through format flattening. 2023-03-16 11:21:50 +01:00
pin.rs Beautify pin! docs 2023-03-16 18:03:23 +01:00
primitive.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
primitive_docs.rs unequal → not equal 2023-03-15 23:55:48 +05:30
result.rs "Basic usage" is redundant for there is just one example 2023-02-16 19:49:31 +02:00
time.rs Bump version placeholders to release 2022-11-06 17:11:02 -05:00
tuple.rs Use partial_cmp to implement tuple lt/le/ge/gt 2023-02-16 23:59:13 -08:00
unit.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00