use std::fmt; mod mmap; #[derive(Copy, Clone, Eq, PartialEq)] struct Hex(T); impl fmt::Display for Hex { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { self.0.fmt(f) } } impl fmt::Debug for Hex { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.write_str("0x")?; self.0.fmt(f) } }