{"url":"https://hiratara.hatenadiary.jp/entry/2021/02/13/212950","published":"2021-02-13 21:29:50","title":"Cell\u3068RefCell","author_name":"hiratara","provider_url":"https://hatena.blog","description":"Cell \u3068 RefCell \u306f\u3069\u3061\u3089\u3082\u300c\u5185\u5074\u306e\u30df\u30e5\u30fc\u30bf\u30d3\u30ea\u30c6\u30a3\u300d\u3092\u5b9f\u73fe\u3059\u308b\u3082\u306e\u3060\u304c\u3001\u5b9f\u73fe\u65b9\u6cd5\u304c\u9055\u3046\u3002 RefCell \u306b\u3064\u3044\u3066\u306f\u3001\u30e9\u30f3\u30bf\u30a4\u30e0\u3067\u30dc\u30ed\u30fc\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3044\u308b\u3053\u3068\u306f\u3088\u304f\u77e5\u3089\u308c\u3066\u3044\u308b\uff08\u3068\u601d\u3046\uff09\u3002 let ref_cell = RefCell::new(20i32); println!(\"ref_cell (1): {}\", ref_cell.borrow()); println!(\"ref_cell (2): {}\", ref_cell.borrow()); *ref_cell.borrow_mut() = 200; println!(\"ref_cell (3): {}\", ref_ce\u2026","blog_url":"https://hiratara.hatenadiary.jp/","type":"rich","width":"100%","image_url":null,"blog_title":"Pixel Pedals of Tomakomai","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiratara.hatenadiary.jp%2Fentry%2F2021%2F02%2F13%2F212950\" title=\"Cell\u3068RefCell - Pixel Pedals of Tomakomai\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/hiratara/","categories":["\u6280\u8853"],"provider_name":"Hatena Blog","version":"1.0","height":"190"}