// http://play.rust-lang.org/?gist=ed56c0ea31c17399545386416af5b56c trait Nice { fn nice(&self) -> String; } impl Nice for T { fn nice(&self) -> String { format!("{:?}", *self) } }