interior_mutability_pointer-0.1.1 has been yanked.
A wrapper around Rc<RefCell<T>> allowing immediate access to inner methods,
without the need for .borrow() or .borrow_mut(),
allowing for a more seamless pointer experience.
let mut k = new;
let p = k.clone; // Clone the pointer.
k.push_str;
println!; // Prints "yo yo"
Also allows the use of operators:
let mut k = new;
let p = k.clone; // Clone the pointer.
k += 5;
println!; // Prints "10 10"
The biggest difference to Rc<RefCell<T>> is that your pointer instance will need to be marked as mut
if you want to use &mut self methods, as opposed to Rc<RefCell<T>> instances where you can call .borrow_mut(),
removing the need for the mut keyword.
However, this does not mean that all clones of the pointer need to be mutable!
let k = new;
let mut p = k.clone; // Clone the pointer.
p.push_str;
println!; // Prints "yo yo"