<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"><channel><title>MagicLen</title><link>https://magiclen.org/tag/concat-with/feed</link><description>多元化原創文章，內容包羅萬象，有程式語言、網站應用、軟體介紹、硬體介紹、作業系統、旅行遊記、專題採訪、益智問題、文學創作，以及作者們的知識分享和作品分享。</description><language>zh-TW</language><lastBuildDate>Mon, 27 Apr 2026 15:26:12 +0000</lastBuildDate><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>8</sy:updateFrequency><sy:updateBase>1970-01-01T00:00+00:00</sy:updateBase><item><title>Rust程式語言如何將定數於編譯階段時串接成字串？</title><link>https://magiclen.org/concat-with</link><description><![CDATA[    <img src="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png 1x, https://magiclen.org/wp-content/uploads/2018/04/rust-440x324.png 2x, https://magiclen.org/wp-content/uploads/2018/04/rust-660x486.png 3x" alt="">
Rust程式語言強大的編譯器可以讓它在編譯階段時就去做完許多其它程式語言在執行階段才能進行的工作，像是Rust的標準函式庫，就有提供一個「concat」巨集，可以將任意數量定數(literal)直接串接成生命周期為「&#x27;static」的字串切片(&amp;&#x27;static str)]]></description><category>Rust</category><category>Rust</category><category>concat-with</category><guid>https://magiclen.org/concat-with</guid><pubDate>Thu, 3 Sep 2020 20:00:02 +0800</pubDate><dc:creator>Magic Len</dc:creator></item></channel></rss>