Abstracting over mutability in Rust

It is common to see the statement that “Rust cannot abstract over mutability”. Indeed,
many functions in the standard library have an immutable and a mutable variant, e.g.
RefCell::borrow() and RefCell::borrow_mut(). However, in some cases,
such as…

Similar

Best way to learn Rust programming

Here's my advice, aside from the usual advice of "Just read The Book!": Read Amos Wegner's A half-hour to learn Rust Go through Richard Anaya's Tour of Rust Checkout the Rustlings repo and do all the exercises, referring to The Book when necessary Get... (more…)

Read more »