所以是的,用例 Cell 和 RefCell 完全取决于代码中的可变性要求。 内部和外部可变性在官方Rust 书中很好地解释了,在designated chapter on mutability 中。
確定! 回上一頁