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

8 lines
185 B
Rust
Raw Normal View History

2022-07-19 11:14:16 +00:00
# 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)
}
}