Prologue
This Rust Story consists of a set of linked pages forming a tutorial for the Rust programming
language. It includes descriptions of Rust models, data, operations, and structures with many code
examples. There is also a
Rust Code Repositories that contain, among
other things, a
Rust Basic Demos repository with sample
code, a good place to start looking at code.
Models
Chapter 1 focuses on Rust models - descriptions of how Rust carries out its mission.
Models include code structure, build process, ownership (a very important topic for Rust),
types and traits, and references.
Data
Chapter 2 describes the Rust data life cycle, basic data types, aggregate types, String types,
std collections types, and references.
Operations
Chapter 3 presents functions, function pointers, and function objects (closures), function error handling,
iterators and iterator operations, Structs with methods, Traits, enumerations and matching.
Structures
Chapter 4 discusses structs in the context of building libraries. The presentation
focuses on several custom library examples: Logger, CmdLine Parser, and Directory Navigator.
Libraries
Chapter 5 discusses several of the most important standard Rust libraries implemented: std::convert,
std::collections, std::Iter, std::io, std::fs, std::net, std::thread, std::sync, std::mpsc, std::process,
and std::time.
References
Chapter 6 provides a table of good resources for learning Rust.