Expand description
The purspose of this library is to provide a way to take a reference to a potentionally mutable variable. Potentially mutable meaning it could be mutable in a struct.
use pure_ref::Pure;
let pure = Pure::new(10);
let borrowed = pure.borrowed();
// or `let borrowed = *pure;`
assert_eq!(*borrowed, 10);