{"author_url":"https://blog.hatena.ne.jp/yohhoy/","provider_name":"Hatena Blog","height":"190","image_url":null,"author_name":"yohhoy","provider_url":"https://hatena.blog","blog_url":"https://yohhoy.hatenadiary.jp/","published":"2016-11-01 00:00:00","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20161101%2Fp1\" title=\"to be, or not to be? - yohhoy\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://yohhoy.hatenadiary.jp/entry/20161101/p1","type":"rich","description":"Rust\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30b3\u30e1\u30f3\u30c8\u3088\u308a\u3002\u6574\u6570\u578b*1\u306b\u5bfe\u3057\u3066Big Endian\u3078\u306e\u5909\u63db\u30e1\u30bd\u30c3\u30c9to_be\u304c\u63d0\u4f9b\u3055\u308c\u308b\u3002\u305d\u306e\u4ed6\u306b\u3082Endianness\u5909\u63db\u30e1\u30bd\u30c3\u30c9to_le, from_be, from_le\u304c\u63d0\u4f9b\u3055\u308c\u308b\u3002 pub fn to_be(self) -> Self { // or not to be? if cfg!(target_endian = \"big\") { self } else { self.swap_bytes() } } https://github.com/rust-lang/rust/blob/1.12.1/src/libcore/num/mod.rs#L428 \u95a2\u2026","version":"1.0","blog_title":"yohhoy\u306e\u65e5\u8a18","title":"to be, or not to be?","width":"100%","categories":["Rust"]}