Rust智能指针
摘要:Rust智能指针 https://course.rs/advance/smart-pointer/intro.html Box 堆对象分配 Box指针拥有内存对象的独占使用权 (一)使用场景 1. 使用 Box 将数据存储在堆上 fn main() { let a = Box::new(3); pr
阅读全文
posted @ 2023-02-12 17:25
posted @ 2023-02-12 17:25
posted @ 2023-02-10 14:20
posted @ 2023-02-09 00:19