Rust 文档涵盖的范围Rc<RefCell<T>>非常广泛,但没有RefCell<Rc<T>>涉及我现在遇到的 。
Rc<RefCell<T>>
RefCell<Rc<T>>
这些是否有效地给出了相同的结果?它们之间有重要区别吗?
smart-pointers rust interior-mutability
interior-mutability ×1
rust ×1
smart-pointers ×1