<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fatalerror</author_name>
  <author_url>https://blog.hatena.ne.jp/fatalerror/</author_url>
  <blog_title>NF</blog_title>
  <blog_url>https://fatalerror.hatenablog.com/</blog_url>
  <categories>
    <anon>技術</anon>
  </categories>
  <description>最近rustでストリークを続けてるんだけど、文字列が難しくて出てくると大体詰まる。 多分文字列というかrust自体の理解ができてないからなんだけど、取り合えず覚えた事をメモ。 （こういう記事無数にありそうだけど、きーたとかぜんでやってないだけ許してほしい） (1) String型 基本として、rustの文字列はStringと&amp;strの2種類ある。 まずは、標準ライブラリとして提供されてるらしいStringから。 fn main() { let mut s1 : String; s1.push_str(&quot;aaa&quot;); } これはコンパイルエラー。C++のstd::stringをイメージしてたので…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffatalerror.hatenablog.com%2Fentry%2F2024%2F01%2F06%2F232548&quot; title=&quot;らすとのもじれつ - NF&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-01-06 23:25:48</published>
  <title>らすとのもじれつ</title>
  <type>rich</type>
  <url>https://fatalerror.hatenablog.com/entry/2024/01/06/232548</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
