{"author_name":"kubo39","blog_url":"https://kubo39.hatenablog.com/","url":"https://kubo39.hatenablog.com/entry/2015/03/26/000448","type":"rich","published":"2015-03-26 00:04:48","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/kubo39/","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkubo39.hatenablog.com%2Fentry%2F2015%2F03%2F26%2F000448\" title=\"\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1 rust\u7248 - kubo39&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","width":"100%","height":"190","description":"\u7121\u610f\u5473\u306b\u30de\u30af\u30ed\u3067\u3002 macro_rules! fib { ( $n:expr ) => {{ let (mut x, mut y) = (1, 0); for _ in 0..$n { let tmp = box x; x += y; y = *tmp; } y }}; } fn main() { println!(\"{}\", fib!(10)); } ( \u055e\u0a0a \u055e) :~/dev $ rustc --version # \u3061\u3068\u53e4\u3044 rustc 1.0.0-nightly (4db0b3246 2015-02-25) (built 2015-02-26) ( \u055e\u0a0a \u055e) :~/dev $ rus\u2026","blog_title":"kubo39's blog","title":"\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1 rust\u7248","provider_name":"Hatena Blog","categories":["Rust"]}