This is an automated archive made by the Lemmit Bot.
The original was posted on /r/rust by /u/seashell-signal on 2024-04-08 08:27:45.
Hello, r/rust, I created rust-dex.cc, a website that provides bite-sized readable and straight-to-the-point breakdown of standard rust traits [1]
I got the idea for building this when I noticed that I found a lot of great insights in often very hard to find places and at times these instances were singular occurrences that would not be reiterated again (or can be very hard to find corroboration for), and so I started making the site, and eventually this is what it ended up being.
The traits are explained in first person, via two perspectives: first, the perspective of an implementor of the trait, and second, the perspective of the trait itself. I personally found this to be useful because it skips some of the mental re-orientations that’s sometimes needed when you’re reading the trait signature and documentation.
- the site is unfortunately not mobile friendly right now.
some points about the site:
- The website is entirely local (its a react SPA with no backend), so you can browse each of the trait entries offline.
- Every trait comes with a comment-heavy code snippet that explains the trait and how it functions and the results of its implementation for a random type.
- The source for all traits covered in the site is available in a single json on ()
- You can search for traits any where on the site using CTRL-F to switch quickly between one trait and another
- I will continue to update every traits whenever something comes up, with the goal of eventually having every trait in there (and having a better frontend).
[1] as of right now - nightly traits are excluded, and a couple of the std modules.
I tried to go for pokedex-like presentation but couldn’t spend much time on the visuals so right now the site might not have the best looking frontend.