Skip to content

ashum9/rust-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Practice Workspace: Day-by-Day Topics

This README provides an overview of what is covered in each day's folder in this Rust learning workspace.


Day 1

  • Rust basics and first program
  • Cargo usage and project structure
  • Simple guessing game

Day 2

  • Control flow: if, while, for loops
  • Functions and return values
  • Practice with function definitions and usage

Day 3

  • Enums: definition and pattern matching
  • Option type: safe handling of optional values
  • Structs: data grouping and methods

Day 4

  • Traits: defining and implementing shared behavior
  • Generics: reusable, type-safe abstractions
  • Result type: error handling
  • Advanced project: flight simulation with traits and generics

Day 5

  • Ownership: value movement, borrowing, and function interaction
  • References and borrowing: mutable/immutable borrows, scope rules
  • Slices: working with parts of collections

Day 6

  • Collections in Rust:
    • Vectors: Creating, updating, iterating, and storing multiple types using enums.
    • Strings: Manipulation, ownership, concatenation, and iteration over bytes/characters.
    • HashMaps: Key-value storage, ownership, accessing, iterating, and updating values.

Day 7

  • Error Handling in Rust:
    • Panic vs Result: Difference between panic (unrecoverable errors) and Result (recoverable errors).
    • Recoverable Errors: Handling file I/O and other recoverable errors using Result and match.
    • Unrecoverable Errors: Using panic! for critical errors and understanding backtraces.

Day 8

  • Lifetimes in Rust:
    • Lifetime: Explains Rust's lifetime system, lifetime annotations, dangling references, elision rules, 'static lifetime, and combining lifetimes with generics and trait bounds.

How to Use

Each folder contains code examples, exercises, and documentation for the day's topic. Start from Day 1 and progress through each folder to build your Rust skills step by step.

Happy Rust learning!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages