pub(crate) fn write_hex_tuple( fmt: &mut Formatter<'_>, type_name: &str, value: &dyn AsRef<[u8]>, ) -> Result<(), Error>