A complete map of the Rust type system
6 comments
·September 8, 2025craftkiller
throwawaymaths
It's always negative. 0xFFFF... Cannot have a two's complement, and the top bit is set.
delusional
I find that the easiest way to remember it is to remember that 0 is positive but has no negative counterpart.
goku12
Adding another resource I use frequently: https://cheats.rs/
One part that I love especially about it is that it represents lifetimes [1] and memory layout [2] of data structures in graphical format. They're as invaluable as API references. I would love to see it included in other documentation as well.
6r17
There aren't that much of them actually ! Almost feel like an element table
smj-edison
I really like how it scrolls left-to-right on mobile, instead of collapsing down.
This is such a small thing, but I love the inclusion of the value ranges for the integers! I can never remember which side can go one deeper ("is it [-128 to 127] or [-127 to 128]"). Bookmarking this for reference later!