2024-06-18 18:29:13 +08:00

12 lines
673 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 智慧型指標
在 Rust 中智慧型指標是包含記憶體位址並引用其他資料的變數但它們還具有額外的元數據和功能。Rust 中的智慧型指標通常擁有它們指向的資料,而引用僅僅是借用資料。
## 進一步了解
- [智慧型指標](https://doc.rust-lang.org/book/ch15-00-smart-pointers.html)
- [使用 Box 指向堆上的資料](https://doc.rust-lang.org/book/ch15-01-box.html)
- [Rc<T>,引用計數智慧型指標](https://doc.rust-lang.org/book/ch15-04-rc.html)
- [共享狀態並發](https://doc.rust-lang.org/book/ch16-03-shared-state.html)
- [Cow 文檔](https://doc.rust-lang.org/std/borrow/enum.Cow.html)