mutable-constant 0.1.0

Mutable access to a constant value
Documentation
1
2
3
4
5
6
7
8
9
10
use mutable_constant::Mc;


#[test]
fn basic_add() {
  let mut mc = Mc::new(42);
  *mc = *mc + 1;

  assert_eq!(*mc, 43);
}