This is my personal repository for learning the Rust programming language.
To learn Rust from the ground up, focusing on understanding its ownership system, type system, and modern language features.
- Basic Project Structure: Set up a Cargo project and understanding the workspace layout
- Structs and Methods: Created
MusicianandTouringstructs with associated methods - Enums and Pattern Matching: Implemented
Statusenum with variants carrying data, usingmatchandif letfor control flow - Ownership and Borrowing: Working with owned
Stringtypes and references
| File | Description |
|---|---|
src/bin/struct_method.rs |
Demonstrates structs, methods, enums, and pattern matching through a musician/touring example |
# Run the main binary
cargo run
# Run the struct/method example
cargo run --bin struct_method- Learn about ownership, borrowing, and lifetimes in depth
- Explore collections (Vec, HashMap)
- Error handling with Result and Option
- Traits and generics (Impl traits at strcut_trait)
- Concurrency and async/await