This library provides utilities for automatically converting a byte sequence to a hex encoded one via an iterator adaptor.
use hexers::Hexers;
let bytes = [0xbe_u8, 0xef_u8];
let mut it = bytes.iter().copied().hexed();
assert_eq!(it.next(), Some('b'));
assert_eq!(it.next(), Some('e'));
assert_eq!(it.next(), Some('e'));
assert_eq!(it.next(), Some('f'));