Skip to content

Topics for the formatting chapter #196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 of 6 tasks
japaric opened this issue Jul 23, 2014 · 1 comment
Closed
2 of 6 tasks

Topics for the formatting chapter #196

japaric opened this issue Jul 23, 2014 · 1 comment

Comments

@japaric
Copy link
Member

japaric commented Jul 23, 2014

  • How to manually implement the Show trait, and access the {} formatter
  • A full list of (formatting) argument types
  • Implementing more than one formatting trait. I think we could reuse the example about the latitude/longitude of a city. We could offer two formats: 12.345° N (floating) and 12° 23' 34" (default).
  • Formatter::pad, important to make {:>5} and {:<3} work on a custom Show implementation.
  • Precision, how to implement {:0.5} and {:0.03}?
  • fmt::Result, what kind of errors could arise from formatting?
@marioidival
Copy link
Member

Hi, I'm closing this issue just to clean up the items that already exist. If you think this issue makes sense to stay open, please create a new issue with updated information and mention this one.

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants