rust/library/core/src/num
Matthias Krüger a5488826a9
Rollup merge of #101308 - nerdypepper:feature/is-ascii-octdigit, r=joshtriplett
introduce `{char, u8}::is_ascii_octdigit`

This feature adds two new APIs: `char::is_ascii_octdigit` and `u8::is_ascii_octdigit`, under the feature gate `is_ascii_octdigit`. These methods are shorthands for `char::is_digit(self, 8)` and `u8::is_digit(self, 8)`:

```rust
// core::char

impl char {
    pub fn is_ascii_octdigit(self) -> bool;
}

// core::num

impl u8 {
    pub fn is_ascii_octdigit(self) -> bool;
}
```

---

Couple of things I need help understanding:

- `const`ness: have I used the right attribute in this case?
- is there a way to run the tests for `core::char` alone, instead of `./x.py test library/core`?
2022-10-03 20:58:56 +02:00
..
dec2flt Added which number is computed in compute_float. 2022-09-22 11:34:42 +02:00
flt2dec Changed dec2flt to use the Eisel-Lemire algorithm. 2021-07-17 00:30:34 -05: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 Add log2 and log10 to NonZeroU* 2022-01-15 17:14:13 -08:00
int_macros.rs Rollup merge of #101555 - jhpratt:stabilize-mixed_integer_ops, r=joshtriplett 2022-09-27 21:42:21 +02: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 #101555 - jhpratt:stabilize-mixed_integer_ops, r=joshtriplett 2022-09-27 21:42:21 +02:00
wrapping.rs Stabilize wrapping_int_assign_impl in 1.60.0. 2022-02-07 11:45:12 +01:00