diff options
author | Jasper Ras <jras@hostnet.nl> | 2025-08-05 08:53:21 +0200 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2025-08-05 08:53:21 +0200 |
commit | 295b343aecf330e830d79f06e0efc511e7d76da1 (patch) | |
tree | 85057ef1fe401adcd0d958ddf6ff966f25d8fef0 /Moved heap data principle.md | |
parent | f43372529e655f3b039946c969e4465193eb2042 (diff) |
vault backup: 2025-08-05 08:53:21
Diffstat (limited to 'Moved heap data principle.md')
-rw-r--r-- | Moved heap data principle.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Moved heap data principle.md b/Moved heap data principle.md new file mode 100644 index 0000000..a25f60a --- /dev/null +++ b/Moved heap data principle.md @@ -0,0 +1,6 @@ +[[Rust principles]] +[[Ownership]] + +--- + +If a variable `x` moves ownership of heap data to another variable `y`, then `x` cannot be used after the move.
\ No newline at end of file |