标签:智能指针

intermediate 25 分钟

Box 与递归类型

用 Box<T> 把数据放到堆上,定义递归数据结构。

intermediate 25 分钟

Rc 共享所有权

用 Rc<T> 让多个所有者共享同一份只读数据。