Skip to content

Glossary: Software Design Patterns in Rust

Borrow checker

Also written: borrowing

The part of the Rust compiler that checks every reference follows the ownership and borrowing rules. Adding `.clone()` just to make its errors go away is a bad habit, because it hides the real ownership problem and copies data for nothing.

Where the book teaches it

Related terms

CloneOwnership