rust/src/libcore/tests/fmt
Simon Sapin 4897935e86 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
2018-03-13 14:53:06 +01:00
..
builders.rs Make fmt::DebugList and friends forward formatting parameters 2017-11-24 14:17:31 +01:00
float.rs Always print floats with a decimal point with the Debug formatter 2017-12-19 01:35:35 +00:00
mod.rs Move libXtest into libX/tests 2017-04-03 20:49:39 +02:00
num.rs Add hexadecimal formatting of integers with fmt::Debug 2018-03-13 14:53:06 +01:00