<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hanamako8888</author_name>
  <author_url>https://blog.hatena.ne.jp/hanamako8888/</author_url>
  <blog_title>IT技術に関する情報掲載サイト</blog_title>
  <blog_url>https://www.it-educationblog.com/</blog_url>
  <categories>
    <anon>Rust</anon>
  </categories>
  <description>Rustの特徴として、変数は、標準で不変になっており、以下のようコードの場合は、エラーとなります。 fn main() { let x = 5; println!(&quot;The value of x is: {}&quot;, x); // xの値は{}です x = 6; println!(&quot;The value of x is: {}&quot;, x);} 変数が不変であるということは、値が名前に束縛され、その値を変えることができません。 ただ、だからといって絶対不変でなければいけないというわけでもなく、mutってというものを使うと、可変にできます。 let mut x = 5; でも、変数と定数の違いはなんだろう…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.it-educationblog.com%2Fentry%2F2020%2F12%2F30%2F132031&quot; title=&quot;Rustの変数と可変性について - IT技術に関する情報掲載サイト&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>2020-12-30 13:20:31</published>
  <title>Rustの変数と可変性について</title>
  <type>rich</type>
  <url>https://www.it-educationblog.com/entry/2020/12/30/132031</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
