the way to master rust  [draft]

Rust I use rust version 1.76.0 (07dca489a 2024-02-04). useful links: the book rust by examples Rustonomicon rust RFC Ownership The rules of ownership: Each value in Rust has an owner There can only be one owner at a time (may have shared ownership via Arc/Rc, invoking clone produces a new pointer to the same allocation in the heap) When the owner goes out of the scope, the value will be dropped References & Borrowing We call the action of creating a reference - borrowing, which won’t take the ownership of the variable....

March 13, 2024 · 10 min · 2063 words · Yuheng