<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mogame2ab</author_name>
  <author_url>https://blog.hatena.ne.jp/mogame2ab/</author_url>
  <blog_title>mogame2abのブログ</blog_title>
  <blog_url>https://mogame2ab.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>1. String 型とは 所有権を持つ文字列型 ヒープ領域に格納される可変長文字列。 動的に文字列を追加・削除・変更できる。 主に以下の場合に使う: 新しい文字列を生成する。 既存の文字列を加工する。 他の関数や構造体に所有権を渡したい場合。 例: String の基本操作 fn main() { let mut s = String::from(&quot;Hello&quot;); s.push_str(&quot;, world!&quot;); // 文字列を追加 println!(&quot;{}&quot;, s); // 出力: Hello, world! } 2. &amp;str 型とは 文字列スライス (参照型) String やリテラル…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmogame2ab.hatenablog.jp%2Fentry%2F2024%2F11%2F26%2F002640&quot; title=&quot;Rust における String 型と &amp;amp;str の使い分けについて - mogame2abのブログ&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>2024-11-26 00:26:40</published>
  <title>Rust における String 型と &amp;str の使い分けについて</title>
  <type>rich</type>
  <url>https://mogame2ab.hatenablog.jp/entry/2024/11/26/002640</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
