<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryuseism</author_name>
  <author_url>https://blog.hatena.ne.jp/ryuseism/</author_url>
  <blog_title>from Minority</blog_title>
  <blog_url>https://ryuseism.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>ポイント 1 構造体・列挙型という2つのユーザ定義型 2 列挙型とswitch-caseは組み合わせて使うとバグの発生を防ぐ強力な仕様 3 構造体・列挙型ではストアドプロパティにタイププロパティが使える 構造体 構造体の定義 struct Point { var x = 0, y = 0 } struct Size { var width = 0, height = 0 func area() -&gt; Int { return width * height } } // 構造体を利用したインスタンスの作成 struct Rectangle { var origin = Point() var s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryuseism.hatenablog.com%2Fentry%2F2015%2F07%2F20%2F035949&quot; title=&quot;ユーザ定義型[構造体・列挙型] - from Minority&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>2015-07-20 03:59:49</published>
  <title>ユーザ定義型[構造体・列挙型]</title>
  <type>rich</type>
  <url>https://ryuseism.hatenablog.com/entry/2015/07/20/035949</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
