Rust vs C++ Formatting | Barry’s C++ Blog

In Rust, if I want to print some 32-bit unsigned value in hex, with the leading 0x, padded out with zeros, I would write that as: