Function encode

Source
pub fn encode<T, V>(v: &T, out: impl FnOnce(&str) -> V) -> V
where T: ?Sized + AsRef<[u8]>,
Expand description

Encodes a sequence of bytes to a lowercase hex string.

The resulting string is passed to the closure.