Jump to content

Rust: 3 core concept: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

28 July 2025

  • curprev 02:1802:18, 28 July 2025 SanzSkuy talk contribs 1,070 bytes +1,070 Created page with "90% "susahnya" Rust ada di 3 konsep ini == Ownership == *Every value is 'owned' by a single variable, struct, vector, etc at a time *Reassigning the value to another variable, passing it to a function, putting it into a vector, etc, '''MOVES''' the value. The old variable can't be used anymore == Borrowing == *You can create many read-only references to a value that exist at the same time *You can't move a value while a ref to the value exist *You can make writable (..."