<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ihcomega</author_name>
  <author_url>https://blog.hatena.ne.jp/ihcomega/</author_url>
  <blog_title>よこなのへたのよこずき</blog_title>
  <blog_url>https://ihcomega.hatenadiary.com/</blog_url>
  <categories>
  </categories>
  <description>... doesn't implement Display (required by ...) って言われているコードがいたのでこの記事を書いてみることにした ↑スクショではBuildErrorという型の中身を出力すべくpanic!(&quot;{}&quot;, build_error)*1相当のことをしているのだけど、&quot;{}&quot;を使えるのはDisplayトレイトを実装した型のみなのでエラーが出ている。ということで、Displayの実装についてコードで確認してみよう nameというフィールドのみ持ったPersonというストラクトの内容を標準出力してみる #[derive(Debug)] // Debugを使うには…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fihcomega.hatenadiary.com%2Fentry%2Fdisplay-and-debug-trait&quot; title=&quot;DisplayトレイトとDebugトレイト、使い方と表示 #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>https://cdn-ak.f.st-hatena.com/images/fotolife/i/ihcomega/20230210/20230210075450.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-02-15 22:38:00</published>
  <title>DisplayトレイトとDebugトレイト、使い方と表示 #Rust</title>
  <type>rich</type>
  <url>https://ihcomega.hatenadiary.com/entry/display-and-debug-trait</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
