Konubinix' opinionated web of thoughts

Interior Mutability

Fleeting

RefCell<T> and the Interior Mutability Pattern - The Rust Programming Language

Mutating the value inside an immutable value is the interior mutability pattern

https://doc.rust-lang.org/stable/book/ch15-05-interior-mutability.html

A test double is the general programming concept for a type used in place of another type during testing. Mock objects are specific types of test doubles that record what happens during a test so you can assert that the correct actions took place.

https://doc.rust-lang.org/stable/book/ch15-05-interior-mutability.html