{"id":85059,"date":"2020-03-25T13:54:02","date_gmt":"2020-03-25T05:54:02","guid":{"rendered":"http:\/\/4563.org\/?p=85059"},"modified":"2020-03-25T13:54:02","modified_gmt":"2020-03-25T05:54:02","slug":"%e8%af%b7%e6%95%99%e4%b8%80%e4%b8%aa-rust-%e6%95%b0%e6%8d%ae%e6%98%af%e5%9c%a8%e5%a0%86%e4%b8%8a%ef%bc%8c%e8%bf%98%e6%98%af%e5%9c%a8%e6%a0%88%e4%b8%8a%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=85059","title":{"rendered":"\u8bf7\u6559\u4e00\u4e2a Rust \u6570\u636e\u662f\u5728\u5806\u4e0a\uff0c\u8fd8\u662f\u5728\u6808\u4e0a\u7684\u95ee\u9898"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u8bf7\u6559\u4e00\u4e2a Rust \u6570\u636e\u662f\u5728\u5806\u4e0a\uff0c\u8fd8\u662f\u5728\u6808\u4e0a\u7684\u95ee\u9898               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Kaiv2 <\/span>  <span><i><\/i> 7<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<h1>\u300a Rust \u7a0b\u5e8f\u8bed\u8a00\u8bbe\u8ba1\u300b<\/h1>\n<p> <\/p>\n<p>\u4f7f\u7528<code>Box&lt;T&gt;<\/code>\u6307\u5411\u5806\u4e0a\u7684\u6570\u636e<\/p>\n<pre><code>\u6700\u7b80\u5355\u76f4\u63a5\u7684\u667a\u80fd\u6307\u9488\u662f box\uff0c\u5176\u7c7b\u578b\u662f Box&lt;T&gt;\u3002box \u5141\u8bb8\u4f60\u5c06\u4e00\u4e2a\u503c\u653e\u5728\u5806\u4e0a\u800c\u4e0d\u662f\u6808\u4e0a\u3002\u7559\u5728\u6808\u4e0a\u7684\u5219\u662f\u6307\u5411\u5806\u6570\u636e\u7684\u6307\u9488\u3002\u5982\u679c <\/code><\/pre>\n<p>\u5806\u6808<\/p>\n<pre><code>\u6808\uff08 Stack \uff09\u4e0e\u5806\uff08 Heap \uff09 \u5728\u5f88\u591a\u8bed\u8a00\u4e2d\uff0c\u4f60\u5e76\u4e0d\u9700\u8981\u7ecf\u5e38\u8003\u8651\u5230\u6808\u4e0e\u5806\u3002\u4e0d\u8fc7\u5728\u50cf Rust \u8fd9\u6837\u7684\u7cfb\u7edf\u7f16\u7a0b\u8bed\u8a00\u4e2d\uff0c\u503c\u662f\u4f4d\u4e8e\u6808\u4e0a\u8fd8\u662f\u5806\u4e0a\u5728\u66f4\u5927\u7a0b\u5ea6\u4e0a\u5f71\u54cd\u4e86\u8bed\u8a00\u7684\u884c\u4e3a\u4ee5\u53ca\u4e3a\u4f55\u5fc5\u987b\u505a\u51fa\u8fd9\u6837\u7684\u6289\u62e9\u3002\u6211\u4eec\u4f1a\u5728\u672c\u7ae0\u7684\u7a0d\u540e\u90e8\u5206\u63cf\u8ff0\u6240\u6709\u6743\u4e0e\u6808\u548c\u5806\u76f8\u5173\u7684\u5185\u5bb9\uff0c\u6240\u4ee5\u8fd9\u91cc\u53ea\u662f\u4e00\u4e2a\u7528\u6765\u9884\u70ed\u7684\u7b80\u8981\u89e3\u91ca\u3002  \u6808\u548c\u5806\u90fd\u662f\u4ee3\u7801\u5728\u8fd0\u884c\u65f6\u53ef\u4f9b\u4f7f\u7528\u7684\u5185\u5b58\uff0c\u4f46\u662f\u5b83\u4eec\u7684\u7ed3\u6784\u4e0d\u540c\u3002\u6808\u4ee5\u653e\u5165\u503c\u7684\u987a\u5e8f\u5b58\u50a8\u503c\u5e76\u4ee5\u76f8\u53cd\u987a\u5e8f\u53d6\u51fa\u503c\u3002\u8fd9\u4e5f\u88ab\u79f0\u4f5c \u540e\u8fdb\u5148\u51fa\uff08 last in, first out \uff09\u3002\u60f3\u8c61\u4e00\u4e0b\u4e00\u53e0\u76d8\u5b50\uff1a\u5f53\u589e\u52a0\u66f4\u591a\u76d8\u5b50\u65f6\uff0c\u628a\u5b83\u4eec\u653e\u5728\u76d8\u5b50\u5806\u7684\u9876\u90e8\uff0c\u5f53\u9700\u8981\u76d8\u5b50\u65f6\uff0c\u4e5f\u4ece\u9876\u90e8\u62ff\u8d70\u3002\u4e0d\u80fd\u4ece\u4e2d\u95f4\u4e5f\u4e0d\u80fd\u4ece\u5e95\u90e8\u589e\u52a0\u6216\u62ff\u8d70\u76d8\u5b50\uff01\u589e\u52a0\u6570\u636e\u53eb\u505a \u8fdb\u6808\uff08 pushing onto the stack \uff09\uff0c\u800c\u79fb\u51fa\u6570\u636e\u53eb\u505a \u51fa\u6808\uff08 popping off the stack \uff09\u3002  \u6808\u4e2d\u7684\u6240\u6709\u6570\u636e\u90fd\u5fc5\u987b\u5360\u7528\u5df2\u77e5\u4e14\u56fa\u5b9a\u7684\u5927\u5c0f\u3002\u5728\u7f16\u8bd1\u65f6\u5927\u5c0f\u672a\u77e5\u6216\u5927\u5c0f\u53ef\u80fd\u53d8\u5316\u7684\u6570\u636e\uff0c\u8981\u6539\u4e3a\u5b58\u50a8\u5728\u5806\u4e0a\u3002\u5806\u662f\u7f3a\u4e4f\u7ec4\u7ec7\u7684\uff1a\u5f53\u5411\u5806\u653e\u5165\u6570\u636e\u65f6\uff0c\u4f60\u8981\u8bf7\u6c42\u4e00\u5b9a\u5927\u5c0f\u7684\u7a7a\u95f4\u3002\u64cd\u4f5c\u7cfb\u7edf\u5728\u5806\u7684\u67d0\u5904\u627e\u5230\u4e00\u5757\u8db3\u591f\u5927\u7684\u7a7a\u4f4d\uff0c\u628a\u5b83\u6807\u8bb0\u4e3a\u5df2\u4f7f\u7528\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u8868\u793a\u8be5\u4f4d\u7f6e\u5730\u5740\u7684 \u6307\u9488\uff08 pointer \uff09\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u79f0\u4f5c \u5728\u5806\u4e0a\u5206\u914d\u5185\u5b58\uff08 allocating on the heap \uff09\uff0c\u6709\u65f6\u7b80\u79f0\u4e3a \u201c\u5206\u914d\u201d\uff08 allocating \uff09\u3002\u5c06\u6570\u636e\u63a8\u5165\u6808\u4e2d\u5e76\u4e0d\u88ab\u8ba4\u4e3a\u662f\u5206\u914d\u3002\u56e0\u4e3a\u6307\u9488\u7684\u5927\u5c0f\u662f\u5df2\u77e5\u5e76\u4e14\u56fa\u5b9a\u7684\uff0c\u4f60\u53ef\u4ee5\u5c06\u6307\u9488\u5b58\u50a8\u5728\u6808\u4e0a\uff0c\u4e0d\u8fc7\u5f53\u9700\u8981\u5b9e\u9645\u6570\u636e\u65f6\uff0c\u5fc5\u987b\u8bbf\u95ee\u6307\u9488\u3002  \u60f3\u8c61\u4e00\u4e0b\u53bb\u9910\u9986\u5c31\u5ea7\u5403\u996d\u3002\u5f53\u8fdb\u5165\u65f6\uff0c\u4f60\u8bf4\u660e\u6709\u51e0\u4e2a\u4eba\uff0c\u9910\u9986\u5458\u5de5\u4f1a\u627e\u5230\u4e00\u4e2a\u591f\u5927\u7684\u7a7a\u684c\u5b50\u5e76\u9886\u4f60\u4eec\u8fc7\u53bb\u3002\u5982\u679c\u6709\u4eba\u6765\u8fdf\u4e86\uff0c\u4ed6\u4eec\u4e5f\u53ef\u4ee5\u901a\u8fc7\u8be2\u95ee\u6765\u627e\u5230\u4f60\u4eec\u5750\u5728\u54ea\u3002  \u5165\u6808\u6bd4\u5728\u5806\u4e0a\u5206\u914d\u5185\u5b58\u8981\u5feb\uff0c\u56e0\u4e3a\uff08\u5165\u6808\u65f6\uff09\u64cd\u4f5c\u7cfb\u7edf\u65e0\u9700\u4e3a\u5b58\u50a8\u65b0\u6570\u636e\u53bb\u641c\u7d22\u5185\u5b58\u7a7a\u95f4\uff1b\u5176\u4f4d\u7f6e\u603b\u662f\u5728\u6808\u9876\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0c\u5728\u5806\u4e0a\u5206\u914d\u5185\u5b58\u5219\u9700\u8981\u66f4\u591a\u7684\u5de5\u4f5c\uff0c\u8fd9\u662f\u56e0\u4e3a\u64cd\u4f5c\u7cfb\u7edf\u5fc5\u987b\u9996\u5148\u627e\u5230\u4e00\u5757\u8db3\u591f\u5b58\u653e\u6570\u636e\u7684\u5185\u5b58\u7a7a\u95f4\uff0c\u5e76\u63a5\u7740\u505a\u4e00\u4e9b\u8bb0\u5f55\u4e3a\u4e0b\u4e00\u6b21\u5206\u914d\u505a\u51c6\u5907\u3002  \u8bbf\u95ee\u5806\u4e0a\u7684\u6570\u636e\u6bd4\u8bbf\u95ee\u6808\u4e0a\u7684\u6570\u636e\u6162\uff0c\u56e0\u4e3a\u5fc5\u987b\u901a\u8fc7\u6307\u9488\u6765\u8bbf\u95ee\u3002\u73b0\u4ee3\u5904\u7406\u5668\u5728\u5185\u5b58\u4e2d\u8df3\u8f6c\u8d8a\u5c11\u5c31\u8d8a\u5feb\uff08\u7f13\u5b58\uff09\u3002\u7ee7\u7eed\u7c7b\u6bd4\uff0c\u5047\u8bbe\u6709\u4e00\u4e2a\u670d\u52a1\u5458\u5728\u9910\u5385\u91cc\u5904\u7406\u591a\u4e2a\u684c\u5b50\u7684\u70b9\u83dc\u3002\u5728\u4e00\u4e2a\u684c\u5b50\u62a5\u5b8c\u6240\u6709\u83dc\u540e\u518d\u79fb\u52a8\u5230\u4e0b\u4e00\u4e2a\u684c\u5b50\u662f\u6700\u6709\u6548\u7387\u7684\u3002\u4ece\u684c\u5b50 A \u542c\u4e00\u4e2a\u83dc\uff0c\u63a5\u7740\u684c\u5b50 B \u542c\u4e00\u4e2a\u83dc\uff0c\u7136\u540e\u518d\u684c\u5b50 A\uff0c\u7136\u540e\u518d\u684c\u5b50 B \u8fd9\u6837\u7684\u6d41\u7a0b\u4f1a\u66f4\u52a0\u7f13\u6162\u3002\u51fa\u4e8e\u540c\u6837\u539f\u56e0\uff0c\u5904\u7406\u5668\u5728\u5904\u7406\u7684\u6570\u636e\u5f7c\u6b64\u8f83\u8fd1\u7684\u65f6\u5019\uff08\u6bd4\u5982\u5728\u6808\u4e0a\uff09\u6bd4\u8f83\u8fdc\u7684\u65f6\u5019\uff08\u6bd4\u5982\u53ef\u80fd\u5728\u5806\u4e0a\uff09\u80fd\u66f4\u597d\u7684\u5de5\u4f5c\u3002\u5728\u5806\u4e0a\u5206\u914d\u5927\u91cf\u7684\u7a7a\u95f4\u4e5f\u53ef\u80fd\u6d88\u8017\u65f6\u95f4\u3002  \u5f53\u4f60\u7684\u4ee3\u7801\u8c03\u7528\u4e00\u4e2a\u51fd\u6570\u65f6\uff0c\u4f20\u9012\u7ed9\u51fd\u6570\u7684\u503c\uff08\u5305\u62ec\u53ef\u80fd\u6307\u5411\u5806\u4e0a\u6570\u636e\u7684\u6307\u9488\uff09\u548c\u51fd\u6570\u7684\u5c40\u90e8\u53d8\u91cf\u88ab\u538b\u5165\u6808\u4e2d\u3002\u5f53\u51fd\u6570\u7ed3\u675f\u65f6\uff0c\u8fd9\u4e9b\u503c\u88ab\u79fb\u51fa\u6808\u3002  \u8ddf\u8e2a\u54ea\u90e8\u5206\u4ee3\u7801\u6b63\u5728\u4f7f\u7528\u5806\u4e0a\u7684\u54ea\u4e9b\u6570\u636e\uff0c\u6700\u5927\u9650\u5ea6\u7684\u51cf\u5c11\u5806\u4e0a\u7684\u91cd\u590d\u6570\u636e\u7684\u6570\u91cf\uff0c\u4ee5\u53ca\u6e05\u7406\u5806\u4e0a\u4e0d\u518d\u4f7f\u7528\u7684\u6570\u636e\u786e\u4fdd\u4e0d\u4f1a\u8017\u5c3d\u7a7a\u95f4\uff0c\u8fd9\u4e9b\u95ee\u9898\u6b63\u662f\u6240\u6709\u6743\u7cfb\u7edf\u8981\u5904\u7406\u7684\u3002\u4e00\u65e6\u7406\u89e3\u4e86\u6240\u6709\u6743\uff0c\u4f60\u5c31\u4e0d\u9700\u8981\u7ecf\u5e38\u8003\u8651\u6808\u548c\u5806\u4e86\uff0c\u4e0d\u8fc7\u660e\u767d\u4e86\u6240\u6709\u6743\u7684\u5b58\u5728\u5c31\u662f\u4e3a\u4e86\u7ba1\u7406\u5806\u6570\u636e\uff0c\u80fd\u591f\u5e2e\u52a9\u89e3\u91ca\u4e3a\u4ec0\u4e48\u6240\u6709\u6743\u8981\u4ee5\u8fd9\u79cd\u65b9\u5f0f\u5de5\u4f5c\u3002 <\/code><\/pre>\n<h2>\u6570\u636e\u4ec0\u4e48\u65f6\u5019\u518d\u5806\u4e0a\uff0c\u4ec0\u4e48\u65f6\u5019\u518d\u6808\u4e0a\u5462\uff1f<\/h2>\n<pre><code>    struct Aa {         id: i32,     }     impl Drop for Aa {         fn drop(&amp;mut self) {             println!(\"Aa Drop, id: {}\", self.id);         }     }      #[test]     fn test_1() {         let a1 = Aa { id: 1 }; \/\/ \u6570\u636e\u5206\u914d\u5728\u6808\u4e2d         let a1 = Rc::new(a1); \/\/ \u6570\u636e move \u5230\u4e86\u5806\u4e2d\uff1f     }          #[test]     fn test_2() {         let a1 = Aa { id: 1 }; \/\/ \u6570\u636e\u5206\u914d\u5728\u6808\u4e2d         let a1 = Box::new(a1); \/\/ \u6570\u636e move \u5230\u4e86\u5806\u4e2d\uff1f     } <\/code><\/pre>\n<p>\u5bf9\u8fd9\u4e2a\u7406\u89e3\u4e5f\u662f\u6bd4\u8f83\u6a21\u7cca\uff0c\u4e0d\u77e5\u9053\u4e0a\u9762\u7684\u4ee3\u7801\u7406\u89e3\u7684\u5bf9\u4e0d\u5bf9\uff0c\u54ea\u4f4d\u5927\u795e\u53ef\u4ee5\u6df1\u5165\u6d45\u51fa\u7684\u89e3\u91ca\u4e00\u4e9b\u5462\uff1f\u611f\u8c22\u2764<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>8<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1394225\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : secondwtq <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u8bf4\u7684\u5f88\u6e05\u695a\u4e86\u554a\uff1a<br \/>\u201cbox \u5141\u8bb8\u4f60\u5c06\u4e00\u4e2a\u503c\u653e\u5728\u5806\u4e0a\u800c\u4e0d\u662f\u6808\u4e0a\u3002\u7559\u5728\u6808\u4e0a\u7684\u5219\u662f\u6307\u5411\u5806\u6570\u636e\u7684\u6307\u9488\u201d<\/p>\n<p>\u4e3b\u5b66\u8fc7 C++ \u6ca1\uff1f                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1394226\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : somalia <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u667a\u80fd\u6307\u9488!                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1394227\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Kaiv2 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @secondwtq \u5b66\u8fc7\u4e00\u70b9 c\/c++\uff0c\u53ef\u80fd\u6211\u6ca1\u8868\u8ff0\u6e05\u9664\u3002\u5982\u4e0a\u9762\u4ee3\u7801\uff0c\u6709\u79cd\u60c5\u51b5\u662f\u6211\u5148\u521d\u59cb\u5316\u503c\u5728\u6808\u4e0a\u7136\u540e Box::new()\u7684\u60c5\u51b5\u3002\u8fd9\u662f\u662f\u5426\u628a\u6808\u4e0a\u7684\u6570\u636e\u79fb\u52a8\u5230\u4e86\u5806\u4e0a\u5462\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1394228\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jmc891205 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6700\u7b80\u5355\u7684\u7406\u89e3\u5c31\u662f\u5206\u914d\u5728\u6808\u4e0a\u7684\u5185\u5b58\u4f5c\u7528\u57df\u5c31\u662f\u5f53\u524d\u51fd\u6570\uff0c\u5f53\u524d\u51fd\u6570\u9000\u51fa\u4e86\u5c31\u8981\u9500\u6bc1\uff1b\u800c\u5206\u914d\u5728\u5806\u4e0a\u7684\u5185\u5b58\u53ef\u4ee5\u5728\u7a0b\u5e8f\u5168\u5c40\u91cc\u4f7f\u7528\uff0c\u67d0\u4e9b\u8bed\u8a00\u8981\u5f00\u53d1\u8005\u624b\u52a8\u91ca\u653e\uff0c\u67d0\u4e9b\u8bed\u8a00\u662f\u7531 GC \u8d1f\u8d23\u91ca\u653e\u3002<br \/>\u4f60\u7684\u4e24\u4e2a test \u91cc\u7b2c\u4e8c\u4e2a a1 \u90fd\u662f\u628a\u6570\u636e\u4ece\u6808\u4e0a move \u5230\u4e86\u5806\u4e0a\u6ca1\u9519\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1394229\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Senevan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7b2c\u4e8c\u6bb5\u4ee3\u7801 Rc::new(RefCell::new(A { name: String::from(&#8220;zhang&#8221;), })); \u7684\u53c2\u6570\u662f\u4e00\u4e2a rvalue struct expression \u6ca1\u6709\u5728\u6808\u4e0a\u5206\u914d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1394230\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Kaiv2 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Senevan \u8fd9\u91cc\u786e\u5b9e\u662f\u7684\u3002<br \/>\u5e94\u8be5\u4f7f\u7528\u7b2c\u4e00\u6bb5\u4ee3\u7801\u7684\u5199\u6cd5\u7684<br \/>let a = A {<br \/> name: String::from(&#8220;zhang&#8221;),<br \/>};<br \/>let a = Rc::new(RefCell::new(a));                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1394231\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : secondwtq <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u5b66\u8fc7 C++ \u5e94\u8be5\u6c11\u767d move \u505a\u4e86\u4ec0\u4e48\uff08\u53ea\u662f C++ \u91cc\u9762\u88ab move \u8fc7\u540e\u7684\u503c\u662f unspecified \u7684\uff0cRust \u662f\u76f4\u63a5\u4e0d\u80fd\u7528\uff0c\u53e6\u5916 C \u57fa\u7840\u6ca1\u5565\u7528\uff09<br \/>\u5e95\u5c42\u662f copy \u8fd8\u662f\u4ec0\u4e48\u5e76\u4e0d\u91cd\u8981\uff0c\u5e95\u5c42\u4e5f\u5e76\u6ca1\u6709\u201c\u6240\u6709\u6743\u201d\u4e4b\u7c7b\u7684\u6982\u5ff5\uff0c\u7f16\u8bd1\u5668\u5728\u4fdd\u6301\u884c\u4e3a\u4e0d\u53d8\u7684\u524d\u63d0\u4e0b\u53ef\u4ee5\u968f\u4fbf\u600e\u4e48\u4f18\u5316<br \/>\u5b9e\u5728\u597d\u5947\uff0c\u5f00 godbolt \u770b\u4e0b\u5c31\u662f\u4e86<\/p>\n<p>@Senevan \u201crvalue struct expression \u6ca1\u6709\u5728\u6808\u4e0a\u5206\u914d\u201d source?                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1394232\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Kaiv2 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @secondwtq \u8c22\u8c22\uff0c\u5927\u81f4\u7684\u660e\u767d\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u8bf7\u6559\u4e00\u4e2a Rust \u6570\u636e\u662f\u5728\u5806\u4e0a\uff0c&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/85059"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=85059"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/85059\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=85059"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=85059"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=85059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}