I don't really understand what error you're getting, but if it is due to calling the wrong
get_mut, you usually would resolve that by calling the method with some extra qualifiers like
Cell::get_mut(blah) or some such.
But you typically wouldn't put a
Arc anyway, because
RefCell) are not thread safe:
Sync, and if
>would be as well. But then we'd have a problem:
RefCell<T>is not thread safe; it keeps track of the borrowing count using non-atomic operations.
So you'd really want something like
Cell are usable in