Topic | Description | Link |
---|---|---|
Look here first | Starts with quick to intermediate tutorials on the Rust language. | Getting Started |
Tooling | The Rust environment comes with some great tools: cargo, clippy, doc. You will want to add Visual Studio Code. |
Tooling Cargo Book Visual Studio Code |
File System |
Rust has a well engineered facility for accessing files and directories. Some key types in std::fs are: DirEntry, File, OpenOptions, ReadDir, ... |
Rust story File System std::fs std::path |
Error Handling |
Rust error handling is based on use of the enumeration:
|
RustBites Enums & Err Hndlg RustStory Enums RustStory Error Handling Gentle Introduction to Rust std::Result |
Data Operations | Rust data operations copy, move, and clone. These operations combined with Rust's ownership rules (discussed next time) are the defining characteristics of the language. They are responsible for Rust's data safety and performance. |
Hello Data Data types, copy, and move Rust Story Data Trait Copy keyword move Trait Clone |
Strings |
Rust strings come in two flavors: |
Rust Story Strings std::String Primitive Type str |
struct | Rust structs serve the same role as classes do in C++ and C#. Struct methods are defined inside impl StructName {} blocks. |
Rust Story structs std::Stuct keyword impl |