title: Should I implement Display or ToString to render a type as a string?
body: <p>I have a type <code>Foo</code> that I want to be able to display to the end user as a string, is it more idiomatic to do this by implementing <a href="https://doc.rust-lang.org/std/fmt/trait.Display.html" rel="noreferrer"><code>Display</code></a> or by implementing <a href="https://doc.rust-lang.org/std/string/trait.ToString.html" rel="noreferrer"><code>ToString</code></a>?</p>
  
  <p>If <code>Display</code> is the way to go, how would I actually end up with a <code>String</code>? I suspect I need to make use of <code>write!</code>, but I'm not entirely sure how.</p>