Jose @ ShanghaiTech
Basically Rust essential coding concepts and examples, following "The Book" from rust-lang.org.
Each sub-folder is a Cargo project, containing essential coding concepts, syntax and examples related to that topic. Detailed explanations will be given as comments if necessary.
- Rust "The Book": https://doc.rust-lang.org/book/
- Rust official site: https://www.rust-lang.org/
- Check the Learn tab for comprehensive guidance materials
- Rust standard library document: https://doc.rust-lang.org/std/index.html
- Cargo advanced:
- Common usages (including doc comments): https://doc.rust-lang.org/book/ch14-00-more-about-cargo.html
- The Cargo Book: https://doc.rust-lang.org/cargo/
- https://crates.io/ Hub
Refer to "The Book", Chapter 19 when having trouble.
- Unsafe Rust for 4 conditions
- Lifetime subtyping
- Associated types, and it v.s. generic traits
- Default generic type
- Super-traits
- Type aliases
- The Never type
!
- Returning closure
- Function pointers
- Macros and how to define new ones