rust/library/core/src/num
Matthias Krüger d2644e538c
Rollup merge of #101889 - tspiteri:redoc-uint-adc-sbb, r=m-ou-se
doc: rewrite doc for uint::{carrying_add,borrowing_sub}

Reword the documentation for bigint helper methods `uint::{carrying_add,borrowing_sub}` (#85532).

The examples were also rewritten to demonstrate how the methods can be used in bignum arithmetic. No loops are used in the examples, but the variable names were chosen to include indices so that it is clear how this can be used in a loop if required.

Also, previously `carrying_add` had an example to say that if the input carry is false, the method is equivalent to `overflowing_add`. While the note was kept, the example was removed and an extra note was added to make sure this equivalence is not assumed for signed integers as well.
2022-10-18 21:18:46 +02:00
..
dec2flt more dupe word typos 2022-10-14 12:57:56 +08:00
flt2dec Remove unused variable. 2022-09-25 11:36:14 +02:00
shells Remove use of #[rustc_deprecated] 2022-04-14 01:33:13 -04:00
bignum.rs Rename integer log* methods to ilog* 2022-08-09 10:20:49 -07:00
diy_float.rs Fix assert in diy_float 2021-07-27 16:02:35 -04:00
error.rs remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
f32.rs Fix naming format of IEEE 754 standard 2022-09-11 04:13:33 +02:00
f64.rs Fix naming format of IEEE 754 standard 2022-09-11 04:13:33 +02:00
fmt.rs Fix a bunch of typos 2021-12-14 16:40:43 +01:00
int_log10.rs more dupe word typos 2022-10-14 12:57:56 +08:00
int_macros.rs Remove the redundant Some(try_opt!(..)) in checked_pow 2022-10-17 11:21:50 -07:00
mod.rs Rollup merge of #101308 - nerdypepper:feature/is-ascii-octdigit, r=joshtriplett 2022-10-03 20:58:56 +02:00
nonzero.rs nonzero_negation_ops: inline(always) -> inline. 2022-09-29 07:33:26 +09:00
saturating.rs Unimpl {Add,Sub,Mul,Div,Rem,BitXor,BitOr,BitAnd}<$t> for Saturating<$t> 2022-01-26 23:49:54 +01:00
uint_macros.rs Rollup merge of #101889 - tspiteri:redoc-uint-adc-sbb, r=m-ou-se 2022-10-18 21:18:46 +02:00
wrapping.rs Stabilize wrapping_int_assign_impl in 1.60.0. 2022-02-07 11:45:12 +01:00