在Rust 中最簡單的智慧指標是 Box ,它相當於C++ 中的 std::unique_ptr ... use std::rc::Rc; // Rc 不在預設的命名空間中,因此需要用use 引入符號.
確定! 回上一頁