cheep-crator-2/vendor/derivative/doc/debug-transparent-orig.rs

8 lines
185 B
Rust

# 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)
}
}