<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shinshin86</author_name>
  <author_url>https://blog.hatena.ne.jp/shinshin86/</author_url>
  <blog_title>at backyard</blog_title>
  <blog_url>https://shinshin86.hateblo.jp/</blog_url>
  <categories>
    <anon>Rust</anon>
    <anon>備忘録</anon>
  </categories>
  <description>個人的な備忘録。 += を用いた文字列の連結 Rustの文字列連結(String)には += が利用できるので、一つのString型の変数に複数回文字列連結を行いたいときなども便利だった。 (なお、ここではパフォーマンス周りについては特に書きません。後日調べてみて追記するかも) サンプルコードは下記。 fn main() { let mut text: String = &quot;aaa&quot;.to_string(); text += &quot;bbb&quot;; text += &quot;ccc&quot;; println!(&quot;{}&quot;, text); } これを実行すると、 aaabbbccc と出力される。 その他の方法 moveす…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinshin86.hateblo.jp%2Fentry%2F2022%2F04%2F18%2F060000&quot; title=&quot;Rustの文字列連結について(String) - at backyard&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-04-18 06:00:00</published>
  <title>Rustの文字列連結について(String)</title>
  <type>rich</type>
  <url>https://shinshin86.hateblo.jp/entry/2022/04/18/060000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
