As of now (v1.14), what is the idiomatic (and most convenient) way to print/log a byte array/slice like those often needed when working with cryptographic code or networking protocols? Hopefully no function declaring and loops involved like the old answers I have found elsewhere.
let mut ciphertext: [u8; 256] = [0; 256];
println!("RSA private encrypted: {:?}", ciphertext);
I got
the trait `std::fmt::Debug` is not implemented for `[u8; 256]`
Built-in facilities are preferred but good third-party ones are welcome as well.