// 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)
}
}
// 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)
}
}
Comments