除了 Box<T> 之外,Rust标准库中提供的智能指针还有 Rc<T> 、 Ref<T> ... use std::rc::Rc; fn main() { let x = Rc::new("hello"); println!("{:?} ...
確定! 回上一頁