A clickable visual guide to the Rust type system

rustcurious.com

261 points by ashvardanian 9 months ago


craftkiller - 9 months ago

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!

goku12 - 9 months ago

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.

[1] https://cheats.rs/#memory-lifetimes

[2] https://cheats.rs/#memory-layout

adastra22 - 9 months ago

Why is PhantomData in the unsafe support group?

stmw - 9 months ago

It's very good, thanks for getting it some attention. Also - to show how much I agree - https://news.ycombinator.com/item?id=45140572

smj-edison - 9 months ago

I really like how it scrolls left-to-right on mobile, instead of collapsing down.

mattlutze - 9 months ago

I love a page that doesn't react to my browser width.

shmerl - 9 months ago

Really nice and concise presentation!

6r17 - 9 months ago

There aren't that much of them actually ! Almost feel like an element table

wiredpancake - 9 months ago

[dead]