Should I avoid to use Rc and RefCell when possible in Rust?

前端 未结 0 748
有刺的猬
有刺的猬 2020-12-17 17:42

Rust offers borrow check at compile time. But if using Rc and RefCell, the check will be defered at runtime and a panic will be thrown when the pro

相关标签:
回答
  • 消灭零回复
提交回复
热议问题