diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2018-03-13 14:08:15 +0100 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2018-03-13 14:53:06 +0100 |
| commit | 4897935e8645e5f1d9d9ef61c78a1cb019c44f89 (patch) | |
| tree | d32522f913ff690cfe6893ffe68d04d0ca2c2008 /src/libstd/sys/unix/process/process_unix.rs | |
| parent | 883e74645d350b6752cb94d48f46363f6f8789e9 (diff) | |
| download | rust-4897935e8645e5f1d9d9ef61c78a1cb019c44f89.tar.gz rust-4897935e8645e5f1d9d9ef61c78a1cb019c44f89.zip | |
Add hexadecimal formatting of integers with fmt::Debug
This can be used for integers within a larger types which implements Debug
(possibly through derive) but not fmt::UpperHex or fmt::LowerHex.
```rust
assert!(format!("{:02x?}", b"Foo\0") == "[46, 6f, 6f, 00]");
assert!(format!("{:02X?}", b"Foo\0") == "[46, 6F, 6F, 00]");
```
RFC: https://github.com/rust-lang/rfcs/pull/2226
Diffstat (limited to 'src/libstd/sys/unix/process/process_unix.rs')
0 files changed, 0 insertions, 0 deletions
