Rust Concepts I Wish I Learned Earlier
Author: Link: https://rauljordan.com/rust-concepts-i-wish-i-learned-earlier/ Tags:Articles
- deref, derefmut (see deref)
- be careful with methods
- interior mutability
- cell, refcell, be careful
.get_mut()
methods for containers;- Rust impl parameters (c++ concept auto param)
- iter() when you need to borrow, iter mut() for exclusive refs, and into iter() when you need to own
- Phantom data is more than just for working with raw pointers to types
- rayon
- extension traits
- benchmark