use std::cell::Cell; let num = Cell::new(42); num.set(123); ... 取值,就可以使用在其它的型態上了,它依然會檢查Rust 的那些borrow 的規則,只是是在執行時檢查。
確定! 回上一頁