<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Ownership on Compile My Mind</title>
		<link>https://www.compilemymind.com/tags/ownership/</link>
		<description>Recent content in Ownership on Compile My Mind</description>
		<generator>Hugo</generator>
		<language>en</language>
		
		
		
		
			<lastBuildDate>Sun, 26 Jul 2026 18:50:00 +0200</lastBuildDate>
		
			<atom:link href="https://www.compilemymind.com/tags/ownership/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Rust Ownership and Borrowing: A Practical Mental Model</title>
				<link>https://www.compilemymind.com/posts/rust-ownership-borrowing-practical-mental-model/</link>
				<pubDate>Tue, 21 Jul 2026 11:47:15 +0300</pubDate>
				<guid>https://www.compilemymind.com/posts/rust-ownership-borrowing-practical-mental-model/</guid>
				<description>&lt;p&gt;Rust ownership is not a collection of arbitrary compiler restrictions. It is a static accounting system for three questions:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Who is responsible for a value?&lt;/li&gt;&#xA;&lt;li&gt;Who may access it right now?&lt;/li&gt;&#xA;&lt;li&gt;How long is that access valid?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;If you trace those three facts instead of fighting individual error messages, moves, references, slices, and lifetimes become variations of one model.&lt;/p&gt;&#xA;&lt;p&gt;&lt;figure&gt;&#xA;    &lt;img src=&#34;https://www.compilemymind.com/posts/rust-ownership-borrowing-practical-mental-model/concept-flow.svg&#34; alt=&#34;Rust ownership diagram showing one owner, shared borrows or one mutable borrow, and the value being dropped at the end of its scope&#34; width=&#34;1200&#34; height=&#34;720&#34; loading=&#34;lazy&#34; decoding=&#34;async&#34;&gt;&#xA;    &#xA;  &lt;/figure&gt;&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
