File: debug-transparent-orig.rs

package info (click to toggle)
rust-derivative 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 724 kB
  • sloc: makefile: 2
file content (8 lines) | stat: -rw-r--r-- 185 bytes parent folder | download | duplicates (2)
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)
    }
}