Rules of mutable references in Rust

As a part of Memory Management in Rust, the rules for mutable references are:

  1. You may have one mutable reference in a single scope or any number of immutable references (don’t care about how many readers we have)
  2. References must always be valid (no dangling references)