@Shnatsel wrote...
The following code is unsound:
This uses Rc::as_ref()
to obtain a reference to the underlying data, which does not guarantee uniqueness. It is possible to obtain several mutable references to the same memory location by calling this function repeatedly:
let mycell = Cell::new(vec![1,2,3]);