<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Trait on Andrey's Notes on Everything</title><link>https://blog.dmitriev.de/tags/trait/</link><description>Recent content in Trait on Andrey's Notes on Everything</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sat, 29 Aug 2026 08:30:28 +0200</lastBuildDate><atom:link href="https://blog.dmitriev.de/tags/trait/index.xml" rel="self" type="application/rss+xml"/><item><title>Understanding Traits in Rust — Building a Chain Writer Pipeline</title><link>https://blog.dmitriev.de/rust/0023-write-trait/</link><pubDate>Sat, 29 Aug 2026 00:00:00 +0000</pubDate><guid>https://blog.dmitriev.de/rust/0023-write-trait/</guid><description>&lt;p&gt;Traits are one of Rust’s most important building blocks. They define &lt;strong&gt;capabilities&lt;/strong&gt;, not &lt;strong&gt;types&lt;/strong&gt;. A trait says: &lt;em&gt;“Any type that implements these methods can be used here.”&lt;/em&gt;. Rust’s &lt;code&gt;Write&lt;/code&gt; trait is one of those quiet workhorses that becomes incredibly powerful once you start wrapping and composing writers. In this post, I’ll walk through a small but surprisingly flexible pattern: &lt;strong&gt;stackable writer decorators&lt;/strong&gt;.&lt;/p&gt;</description></item></channel></rss>