Visual Guide to Rust's Core Type System and Lang Items
By
ashvardanian
A respectable bake. You'd come back tomorrow for another.
Summary
A visual guide to the Rust type system, focusing on lang_items — types and traits built into the language to support specific syntax. The guide explains that types like Vec, String, and HashMap are not included because they are just structs built from library code, not core language items. The purpose is to demystify what can be built purely in library code versus what is built into the language itself.
Key quotes
· 3 pulledThe 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.
Vec, String and HashMap do not appear here because those are just structs
You might also wanna read
Building a Minimal RISC-V Hypervisor in Rust: A 1,000-Line Guide
This article/book introduces a sequel to "Operating System in 1,000 Lines," teaching readers how to build a minimal RISC-V hypervisor from s
Building a Minimal RAG System from Scratch: PDF to Highlighted Answers in ~100 Lines of Python
A hands-on tutorial that builds the smallest functional RAG (Retrieval-Augmented Generation) system from scratch using about 100 lines of Py
Centralizing Error Handling in Rust with Custom AppError Enums
This article discusses the importance of centralizing error handling in Rust applications using a custom AppError enum combined with map_err
Steve Jobs: Learning to program computers teaches you how to think
This article features a quote from Steve Jobs about the importance of learning computer programming, where he argues that coding teaches peo
tiny-vllm: An Open-Source C++ and CUDA LLM Inference Engine with Educational Course
This article presents tiny-vllm, an open-source project that provides both a full C++ and CUDA implementation of a high-performance LLM infe
Binary Search in Python: Iterative Implementation Using a While Loop
This article explains the Binary Search algorithm in Python, covering its iterative implementation using a while loop. It highlights that bi
