The Rust Story consists of a Prologue and six chapters, described below. Each title links to one of those pages.
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.
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.
Chapter 2 describes the Rust data life cycle, basic data types, aggregate types, String types,
std collections types, and references.
Chapter 3 presents functions, function pointers, and function objects (closures), function error handling,
iterators and iterator operations, Structs with methods, Traits, enumerations and matching.
Chapter 4 discusses structs in the context of building libraries. The presentation
focuses on several custom library examples: Logger, CmdLine Parser, and Directory Navigator.
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.
Chapter 6 provides a table of good resources for learning Rust.
Code Contents:
Demonstration code used in Rust Story - small explorations of Rust models, syntax, and quirks:
These demos develop examples used in the Rust Story.
-
Chap_1_Models
Examples that illustrate major features of Rust
-
Chap_2_Data
Examples that illustrate data types defined by the language and library and also user-defined types.
-
Chap_3_Operations
Demonstrations of functions, methods, closures, and library operations like iterators.
-
Chap_4_Structures
A few fully developed components.
-
Chap_5_Libraries
Now in a seperate repository: RustLibraryDemos. Some of these
will be moved into this repository.
Build:
This Rust code was built with Cargo from Visual Studio Code terminal and tested on Windows 10.
Status:
There will eventually be more demos, especially for the libraries.