Comment on page
Bits and pieces of Rust
- To override default toolchain for a particular project:
rustup override set nightly. The directory is stored in
overridessection) separately from the project itself.
- A good post by Steven Donovan about closures in Rust. It makes the connection between closures and structs, explains why
move |...|is sometimes needed and why we have to add lifetimes annotations like
where F: Fn(i32) -> i32 + 'a>
- "Rust Tidbits: What is a Lang Item?" - an interesting explanation about traits and other items known to the Rust compiler and marked with
#[lang]annotation. I really enjoyed this article, but for some reason it was quite hard to google to find it again (perhaps because I googled "traits" and "lang" is not a very googleable term).