<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Rust-1.93 on rustbites</title><link>https://www.rustbites.com/tags/rust-1.93/</link><description>Recent content in Rust-1.93 on rustbites</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 15 May 2026 10:12:28 +0200</lastBuildDate><atom:link href="https://www.rustbites.com/tags/rust-1.93/index.xml" rel="self" type="application/rss+xml"/><item><title>140. slice::as_array — Lock a Slice Into a Fixed-Size Array Reference</title><link>https://www.rustbites.com/posts/bite-140/</link><pubDate>Fri, 15 May 2026 09:00:00 +0100</pubDate><guid>https://www.rustbites.com/posts/bite-140/</guid><description>&lt;p&gt;A function hands you &lt;code&gt;&amp;amp;[u8]&lt;/code&gt; but the next step wants &lt;code&gt;&amp;amp;[u8; 32]&lt;/code&gt;. The old answer was &lt;code&gt;&amp;lt;&amp;amp;[u8; 32]&amp;gt;::try_from(slice)&lt;/code&gt; — a turbofish-and-trait dance for what is really just a length check. &lt;strong&gt;Rust 1.93&lt;/strong&gt; stabilises &lt;code&gt;slice::as_array&lt;/code&gt;, the method-call version that does exactly that.&lt;/p&gt;</description></item></channel></rss>