Skip to content

Glossary: Coding Interviews in Rust

Mutable borrow (&mut)

Also written: &mut, borrow

A Rust reference that lets a function change a value it does not own, such as the shared `path` or `memo` passed through recursive calls. You cannot push a `&mut Vec` into a list of `Vec`s without a `clone()`.

Where the book teaches it

Related terms

CloneMemo