Skip to content

Latest commit

 

History

History
37 lines (32 loc) · 1.44 KB

reading_list.md

File metadata and controls

37 lines (32 loc) · 1.44 KB

Reading list to learn Rust while building a single threaded HTTP server.

03/25:

  1. Difference between string and string slice in Rust:
let string = String::from("127.0.0.1:8080");
let string_slice = &string[10..];
println!("{}", string_slice);
  1. Ownership, Borrowing, References: Three ownership rules in Rust: a. Each value in Rust is owned by a variable. b. When the owner goes out of scope, the value will be deallocated. c. There can only be ONE owner at a time. Borrowing: a. Can ownership be borrowed?

  2. How does unwrap() work in Rust?

  3. How does Heap and Stack allocation work in Rust?

03/26:

  1. How are structs, strings, enums and option enums defined and used in Rust?
  2. How do we use the match expression?
  3. What are traits in Rust, eg: TryFrom, From? How do we define and use them? Use cases?
  4. What is Option, Result in Rust? Converting an Option into a Result.
  5. What is if let expression?
  6. What is lifetimes in Rust?

03/27:

  1. How do we use the derive attribute to implement Debug trait on all types.
  2. What are public associated functions?
  3. What are copy and clone traits?
  4. How do read and write traits work for types like TcpStream, Vector, files.
  5. What's the difference between static and dynamic dispatch in Rust?
  6. How do we create custom traits in Rust for handling static files associated with your frontend.
  7. How do we work with env variables in Rust?