about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-10-03 20:58:56 +0200
committerGitHub <noreply@github.com>2022-10-03 20:58:56 +0200
commita5488826a9e2c00184319b3270ad6194f9a973a1 (patch)
tree2c8a7eca634e2a02632513c26ff203b7dc1f064e /library/std/src/sys/unix/stack_overflow.rs
parentdf11395a55fc00e1f8fa9d452af179160b91896f (diff)
parent591c1f25b297c446ac13211f955d06a859206f1a (diff)
downloadrust-a5488826a9e2c00184319b3270ad6194f9a973a1.tar.gz
rust-a5488826a9e2c00184319b3270ad6194f9a973a1.zip
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`?
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions