refcell

Macro refcell 

Source
macro_rules! refcell {
    ($val:expr) => { ... };
}
Expand description

Macro for creating a RefCell<T> from a value

ยงExample

use hurry::refcell;
let x = refcell!(5);
*x.borrow_mut() = 10;
assert_eq!(*x.borrow(), 10);