This repository includes examples for the Rust programming language. It's organized by starting with basic concepts and progresses from there. All the examples come from the wonderful Rust programming language book
- Hello world
- Hello Cargo
- Guessing game
- Variables
- Data Types
- Functions
- Flow Control
- Ownership
- Borrowing
- Slices
- Structs
- Structs another example
- Methods
- Enums
- Enums another example
- Flow control using match
- Flow control using match and Options
- Flow control using if let
- Crates and Packages
- Modules in one file
- Modules using several files
- Strings
- Vectors
- Hashmaps
- Opening files and handling errors
- Types
- Generics
- Traits
- Traits another example
- Lifetimes
- Test automation
- Minigrep app leveraging several concepts
- Closures
- Closures another example
- Iterators
- Iterators another example
- Workspaces
- Box - force data to a heap
- Dereferencing
- Threads
- Threads and sending messages between threads
- Threads another example sending messages
- Object oriented Rust
- Object oriented rust showing encapsulation
- Object oriented rust showing "inheritance"
- Matching patterns