1 2 3 4 5 6 7 8
# use std::fmt; pub struct Wrapping<T>(pub T); impl<T: fmt::Debug> fmt::Debug for Wrapping<T> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { self.0.fmt(f) } }