Module generic_array::hex
source · Expand description
Generic array are commonly used as a return value for hash digests, so
it’s a good idea to allow to hexlify them easily. This module implements
std::fmt::LowerHex
and std::fmt::UpperHex
traits.
Example:
let array = arr![u8; 10, 20, 30];
assert_eq!(format!("{:x}", array), "0a141e");