Is there a good mnemonic for remembering borrowed : owned types in Rust?
&str : String
&[u8] : Vec<u8>
These are easy because I see them often. Knowing the owned equivalent of Path (it's PathBuf) is harder.
Languages with large ecosystems often develop interoperable languages. Scala, Clojure, F# and Typescript all benefit from compatible packages in the "primary" language.
I think Rust will eventually see these too. What will they look
The latest version of Rust can automatically fix lockfiles that have merge conflicts in them: https://github.com/rust-lang/cargo/pull/5831/
This is often possible with machine generated files, but it's rare to see in practice. Super convenient though.