Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // http://play.rust-lang.org/?gist=ed56c0ea31c17399545386416af5b56c
- trait Nice {
- fn nice(&self) -> String;
- }
- impl<T: Debug> Nice for T {
- fn nice(&self) -> String {
- format!("{:?}", *self)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement