pub fn encode<T, V>(v: &T, out: impl FnOnce(&str) -> V) -> Vwhere T: ?Sized + AsRef<[u8]>,
Encodes a sequence of bytes to a lowercase hex string.
The resulting string is passed to the closure.