Shared flowchart

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

by @openstemUpdated Software
📦 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

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