Skip to content

Instantly share code, notes, and snippets.

/debug_trait.rs Secret

Created December 27, 2016 13:57
Show Gist options
  • Save anonymous/6da8dd5b9dabce394ce9f8a7939b3c84 to your computer and use it in GitHub Desktop.
Save anonymous/6da8dd5b9dabce394ce9f8a7939b3c84 to your computer and use it in GitHub Desktop.
use core::fmt;
impl fmt::Debug for CrR {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
writeln!(f, "CrR
\tplli2srdy:\t{:?}
\tplli2son:\t{:?}
\tpllrdy:\t\t{:?}
\tpllon:\t\t{:?}
\tcsson:\t\t{:?}
\thsebyp:\t\t{:?}
\thserdy:\t\t{:?}
\thseon:\t\t{:?}
\thsical:\t\t{:?}
\thsitrim:\t{:?}
\thsirdy:\t\t{:?}
\thsion:\t\t{:?}
", self.plli2srdy(), self.plli2son(), self.pllrdy(), self.pllon(),
self.csson(), self.hsebyp(), self.hserdy(), self.hseon(), self.hsical(),
self.hsitrim(), self.hsirdy(), self.hsion())
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment