<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>K_program</author_name>
  <author_url>https://blog.hatena.ne.jp/K_program/</author_url>
  <blog_title>K_program’s blog</blog_title>
  <blog_url>https://k-program.hatenadiary.com/</blog_url>
  <categories>
  </categories>
  <description>std::backtrace std::backtraceはBacktraceという構造体を定義しているモジュールで, Backtraceはcapture という関数を定義しています。この関数を呼び出すとpanicが発生したときに出てくるようなバックトレースを取得できます。 バックトレースを取得できない環境もあったりします。 コード例 use std::backtrace::Backtrace; fn main() { let bt = Backtrace::capture(); println!(&quot;{:?}&quot;, bt.status()); println!(&quot;{:#?}&quot;, bt); } R…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fk-program.hatenadiary.com%2Fentry%2F2025%2F03%2F05%2F175212&quot; title=&quot;Rustのstd::backtraceモジュール - K_program’s blog&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>2025-03-05 17:52:12</published>
  <title>Rustのstd::backtraceモジュール</title>
  <type>rich</type>
  <url>https://k-program.hatenadiary.com/entry/2025/03/05/175212</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
