<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Copy on rustbites</title><link>https://www.rustbites.com/tags/copy/</link><description>Recent content in Copy on rustbites</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sun, 14 Jun 2026 12:41:59 +0200</lastBuildDate><atom:link href="https://www.rustbites.com/tags/copy/index.xml" rel="self" type="application/rss+xml"/><item><title>200. #[derive(Copy)] and #[inline] — Make Small Types Free to Pass Around</title><link>https://www.rustbites.com/posts/bite-200/</link><pubDate>Sat, 13 Jun 2026 17:00:00 +0100</pubDate><guid>https://www.rustbites.com/posts/bite-200/</guid><description>&lt;p&gt;A two-field struct that you &lt;code&gt;.clone()&lt;/code&gt; everywhere, behind a function the optimizer won&amp;rsquo;t inline across crates — that&amp;rsquo;s two small taxes you can stop paying. &lt;code&gt;Copy&lt;/code&gt; deletes the move/drop bookkeeping, &lt;code&gt;#[inline]&lt;/code&gt; lets the body fold into the caller.&lt;/p&gt;</description></item></channel></rss>