Types
Traits
A clickable visual guide to the Rust type system. Every type possible in Rust falls into one of the boxes shown.
The focus here is on
lang_items
– types and traits built into the language to support specific syntax.
The purpose is to demystify what can be built purely in library code. For example,
Vec,
String and
HashMap
do not appear here because those are just structs.
Rust's clear delineation of a platform-independent
core
enables no_std
crates in embedded firmware and other systems-level contexts where no dynamic heap is available.
(discussion)
Ben Williamson, 2025
Free Rust course: @RustCurious