about
6/8/2022
Rust Story Repo
Rust Story code

RustStory  Repository

Story narrative and code

Quick Status Code functions correctly no known defects Demonstration code yes Documentation yes Test cases None planned Static library none planned Build requires Rust installed Planned design changes Add a few more examples
The Rust Story consists of a Prologue and six chapters, described below. Each title links to one of those pages.

Prologue

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.

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.
  1. Chap_1_Models
    Examples that illustrate major features of Rust
  2. Chap_2_Data
    Examples that illustrate data types defined by the language and library and also user-defined types.
  3. Chap_3_Operations
    Demonstrations of functions, methods, closures, and library operations like iterators.
  4. Chap_4_Structures
    A few fully developed components.
  5. 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.
  Next Prev Pages Sections About Keys