pure_ref 0.1.0

A library for making immutable references only
Documentation

The purspose of this library is to provide a way to take a reference to a potentionally mutable variable.

use pure_ref::Pure;

let pure = Pure::new(10);
let borrowed = pure.borrowed();
assert_eq!(*borrowed, 10);