<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tydk27</author_name>
  <author_url>https://blog.hatena.ne.jp/tydk27/</author_url>
  <blog_title>無理なご乗車はおやめ下さい。</blog_title>
  <blog_url>https://tydk27.hatenadiary.com/</blog_url>
  <categories>
    <anon>Rust</anon>
  </categories>
  <description>Rustは強い静的型付け言語なので、関数定義もそれを意識しておこなう必要があります。関数定義の前に、まずは変数宣言から見てみましょう。Rustは型推論してくれるので、以下のように型を付けなくてもエラーにはなりません。が、やっぱり明示的に型を指定したいところ。というわけで厳密に書くとなると、以下のようになるわけですが最初はなかなか慣れないと思います。 let foo: i32 = 100; let 変数名: 型 = 値; という意味。数値型の場合は符号付きか否か、何ビットかでそれぞれ型名が異なってきます。ここでのi32は、符号付き32ビット、のこと。C系など、静的型付け言語を普段から書いている人…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftydk27.hatenadiary.com%2Fentry%2F20160716%2F1468667326&quot; title=&quot;Rust入門 - 変数宣言と関数定義 - 無理なご乗車はおやめ下さい。&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>2016-07-16 20:08:46</published>
  <title>Rust入門 - 変数宣言と関数定義</title>
  <type>rich</type>
  <url>https://tydk27.hatenadiary.com/entry/20160716/1468667326</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
