Stonks
Description
This crate provides sets that allow borrowing while inserting entries.
While inserting entries while referencing other entries in the same set is allowed, removing entries is not possible as it may invalidate references that are held to said data.
Example
Problematic Code
The following code won't work:
use HashSet;
The Solution
Using Stonks, we can do the following thanks to interior mutability:
use StonksSet;