@openstem shared this flowchart

Software · L1 · Rust: Move, Borrow, or Clone? · flowchart

Software
Updated
0
0
Read only
📦 Passing a value to a functionDoes the function need to own it?➡️ Move itDoes it need to mutate it?🔧 Pass &mut TPass &TStill need the value afterward?🧬 clone before the moveYesNoYesNoYes
Browse Software

We use privacy-friendly product analytics (no session recording, PII masked) to improve OpenStem. Load analytics? Privacy Policy