{"id":45520,"date":"2023-05-05T12:01:33","date_gmt":"2023-03-01T02:33:22","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/45520-2\/"},"modified":"2024-04-30T02:44:38","modified_gmt":"2024-04-29T18:44:38","slug":"45520-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/45520-2\/","title":{"rendered":""},"content":{"rendered":"<p>Rust\u304c\u6d41\u884c\u308a\u3060\u3057\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u52c9\u5f37\u3057\u3066\u307f\u308b\u3002<br \/>\n\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3001\u52c9\u5f37\u30e1\u30e2\u3092\u8a18\u9332\u3059\u308b\u3002<br \/>\nOS\u306f Ubuntu (WSL\u3067\u3082\u3088\u3044)<\/p>\n<h1>00. \u74b0\u5883\u69cb\u7bc9<\/h1>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308c\u3070\u30b3\u30de\u30f3\u30c9\u30d9\u30fc\u30b9\u306eRust\u30b3\u30f3\u30d1\u30a4\u30e9\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ curl --proto '=https' --tlsv1.2 -sSf https:\/\/sh.rustup.rs | sh\r\n<\/code><\/pre>\n<p>\u74b0\u5883\u306b\u3088\u3063\u3066\u306f\u3001C\u306e\u958b\u767a\u74b0\u5883\u3082\u5fc5\u8981\u304b\u3082\u3002<\/p>\n<pre class=\"post-pre\"><code>$ apt install build-essential\r\n<\/code><\/pre>\n<h2>\u7df4\u7fd2\u306e\u6e96\u5099<\/h2>\n<p>\u7df4\u7fd2\u306e\u305f\u3081\u306b\u3001rust \u306e\u30b3\u30fc\u30c9\u3092\u4f5c\u6210\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\uff08\u30d5\u30a9\u30eb\u30c0\uff09\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ cd ~\r\n$ mkdir rust\r\n<\/code><\/pre>\n<p>\u4ee5\u964d\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f &#8220;~\/rust&#8221;\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4f5c\u6210\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<h1>01. Hello, world!<\/h1>\n<h2>\u306f\u3058\u3081\u3066\u306eRust\u30d7\u30ed\u30b0\u30e9\u30e0<\/h2>\n<p>\u307e\u305a\u306f\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6e96\u5099\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ cd ~\r\n$ cd rust\r\n$ mkdir hello\r\n$ cd hello\r\n<\/code><\/pre>\n<p>Rust\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u62e1\u5f35\u5b50\u306f .rs \u3067\u3059\u3002\u307e\u305a\u306f hello, world! \u3092\u66f8\u3044\u3066\u753b\u9762\u306b\u51fa\u529b\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>fn main() {\r\n    \r\n    println!(\"Hello, world!!\");\r\n}\r\n<\/code><\/pre>\n<p>\u66f8\u3044\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u307e\u3059\u3002\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u30b3\u30de\u30f3\u30c9\u306f &#8220;rustc&#8221; \u3067\u3059\u3002<br \/>\n&#8220;rustc&#8221;\u30b3\u30de\u30f3\u30c9\u306b\u3088\u308a\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u3068\u3001\u300c\u5b9f\u884c\u53ef\u80fd\u30d5\u30a1\u30a4\u30eb\u300d\u304c\u51fa\u6765\u4e0a\u304c\u308a\u307e\u3059\u3002<br \/>\n\u5f15\u6570\u306e -o \u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u7d9a\u3044\u3066\u5b9f\u884c\u53ef\u80fd\u30d5\u30a1\u30a4\u30eb\u540d\u3001\u305d\u306e\u5f8c\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u5bfe\u8c61\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ rustc -o helloworld hello.rs\r\n$ ls\r\nhello.rs  helloworld\r\n<\/code><\/pre>\n<p>\u5b9f\u884c\u53ef\u80fd\u30d5\u30a1\u30a4\u30eb&#8221;helloworld&#8221;\u304c\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ .\/helloworld\r\nHello, world!!\r\n<\/code><\/pre>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u5b9f\u884c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<h2>\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u89e3\u8aac<\/h2>\n<p>\u30b3\u30fc\u30c9\u4e2d\u306e\u3001\u6b21\u306e\u90e8\u5206\u306b\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>println!(\"Hello, world!!\");\r\n<\/code><\/pre>\n<p>&#8220;println!&#8221;\u306e\u90e8\u5206\u306f\u3001\u300c\u6587\u5b57\u5217\u3092\u753b\u9762\u306b\u51fa\u529b\u305b\u3088\u300d\u3068\u3044\u3046\u547d\u4ee4\u3067\u3059\u3002(\u6587\u5b57\u5217\u306f\u6587\u5b57\u304c\u9023\u306a\u3063\u3066\u5217\u306b\u306a\u3063\u305f\u3082\u306e\u3067\u3059\u3002)<br \/>\n&#8220;!&#8221;\u304c\u6700\u5f8c\u306b\u3064\u3044\u3066\u3044\u308b\u306e\u304c\u5947\u5999\u306a\u6c17\u304c\u3057\u307e\u3059\u3002\u3053\u308c\u306f&#8221;println&#8221;\u304c\u300c\u30de\u30af\u30ed\u300d\u3067\u3042\u308b\u3068\u3044\u3046\u610f\u5473\u3067\u3059\u3002Rust\u3067\u7528\u3044\u308b\u547d\u4ee4\u306f\u300c\u95a2\u6570\u300d\u3084\u300c\u30de\u30af\u30ed\u300d\u306a\u3069\u306e\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u5f8c\u307b\u3069\u8aac\u660e\u3057\u307e\u3059\u3002<br \/>\n\u4e38\u62ec\u5f27&#8221;()&#8221;\u306e\u4e2d\u306b\u306f\u547d\u4ee4\u306b\u6e21\u3059\u30c7\u30fc\u30bf\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u3053\u308c\u3092\u300c\u5f15\u6570(\u3072\u304d\u3059\u3046)\u300d\u3068\u547c\u3073\u307e\u3059\u3002\u6587\u5b57\u5217\u306f &#8220;&#8221;(\u30c0\u30d6\u30eb\u30af\u30aa\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3)\u3067\u56f2\u3063\u3066\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306a\u547d\u4ee4\u306e\u6700\u5f8c\u306b\u306f ; \u3092\u4ed8\u4e0e\u3057\u307e\u3059\u3002&#8221;;&#8221;\u306f\u3001\u3055\u307e\u3056\u307e\u306a\u3068\u3053\u308d\u3067\u51fa\u3066\u304d\u307e\u3059\u304c\u3001\u3072\u3068\u3064\u306e\u547d\u4ee4\u306e\u7d42\u308f\u308a\u3092\u7de0\u3081\u304f\u304f\u308b\u3082\u306e\u3060\u3068\u601d\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3067\u306f\u3001\u4e0a\u8a18\u3092\u9664\u3044\u305f\u90e8\u5206\u3001\u3064\u307e\u308a\u6b21\u306e\u90e8\u5206\u306b\u6ce8\u76ee\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>fn main() {\r\n...\r\n}\r\n<\/code><\/pre>\n<p>\u3053\u308c\u306fRust\u3067\u4f7f\u3046\u547d\u4ee4\u306e\u3072\u3068\u3064\u3067\u3042\u308b\u300c\u95a2\u6570\u300d\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u3002&#8221;fn&#8221;\u306b\u7d9a\u3044\u3066\u95a2\u6570\u540d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\nRust\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u3001\u6700\u521d\u306b\u5b9f\u884c\u3059\u308b\u95a2\u6570\u3068\u3057\u3066&#8221;main&#8221;\u3068\u3044\u3046\u540d\u524d\u306e\u95a2\u6570\u3092\u4f5c\u308a\u307e\u3059\u3002&#8221;()&#8221;\u306e\u4e2d\u306b\u306f\u5f15\u6570\u3092\u6307\u5b9a\u3057\u307e\u3059\u304c\u3001\u4eca\u306f\u4f7f\u7528\u3057\u307e\u305b\u3093\u306e\u3067\u7a7a\u6b04\u3068\u3057\u307e\u3059\u3002<br \/>\n\u7d9a\u3044\u3066\u3001\u4e2d\u62ec\u5f27\u306e\u4e2d&#8221;{ &#8230; }&#8221;\u306b\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u307e\u3059\u3002\u4eca\u56de\u306f\u3001\u6587\u5b57\u5217\u3092\u51fa\u529b\u3059\u308b\u3060\u3051\u306a\u306e\u3067 println!(&#8230;)\u304c\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u4e2d\u62ec\u5f27&#8221;{ &#8230; }&#8221;\u3092\u3001\u300c\u30d6\u30ed\u30c3\u30af\u300d\u3068\u3044\u3044\u307e\u3059\u3002<\/p>\n<p>\u3068\u3053\u308d\u3067\u3001\u3082\u3046\u4e00\u5ea6\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u5168\u6587\u3092\u307f\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>fn main() {\r\n    \r\n    println!(\"Hello, world!!\");\r\n}\r\n<\/code><\/pre>\n<p>&#8220;println!()&#8221;\u306e\u90e8\u5206\u304c\uff11\u6bb5\u53f3\u306b\u30ba\u30ec\u3066\u3044\u308b\u306e\u304c\u308f\u304b\u308a\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306f\u300c\u30a4\u30f3\u30c7\u30f3\u30c8(\u5b57\u4e0b\u3052)\u300d\u3068\u3044\u3044\u307e\u3059\u3002\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u898b\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3059\u3002\u30a4\u30f3\u30c7\u30f3\u30c8\u306f\u3001\u7a7a\u767d4\u3064\u3092\u4f7f\u3044\u307e\u3059\u3002(\u4ed6\u306e\u8a00\u8a9e\u3067\u306f\u3001tab\u30ad\u30fc\u3067\u3082\u4ee3\u7528\u3067\u304d\u308b\u3082\u306e\u3082\u3042\u308a\u307e\u3059)<\/p>\n<p>\u30a4\u30f3\u30c7\u30f3\u30c8\u3092\u7528\u3044\u306a\u304f\u3066\u3082\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u304c\u3001\u305d\u306e\u3088\u3046\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u975e\u5e38\u306b\u898b\u306b\u304f\u3044(\u919c\u3044)\u3082\u306e\u306b\u306a\u308a\u304c\u3061\u306a\u306e\u3067\u3001\u30a4\u30f3\u30c7\u30f3\u30c8\u3092\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h1>cargo \u306b\u3088\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u7ba1\u7406<\/h1>\n<p>Rust\u3067\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u5358\u4f4d\u3067\u306a\u304f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5358\u4f4d\u3067\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u6a5f\u80fd\u3092\u3042\u3089\u304b\u3058\u3081\u5099\u3048\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001&#8221;cargo&#8221;\u30b3\u30de\u30f3\u30c9\u3067\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>##\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u4f5c\u6210<br \/>\n\u203b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u3001&#8221;~\/rust&#8221;\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4f5c\u6210\u3059\u308b\u3053\u3068\u3092\u5fd8\u308c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002\u6b21\u56de\u4ee5\u964d\u306f\u3068\u304f\u306b\u8a18\u8f09\u3057\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"post-pre\"><code>$ cd ~\/rust\r\n$ \r\n<\/code><\/pre>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u65b0\u898f\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001&#8221;cargo&#8221;\u306b\u7d9a\u3044\u3066&#8221;new&#8221;\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002&#8221;hello2&#8243;\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ cargo new hello2\r\n     Created binary (application) `hello2` package\r\n<\/code><\/pre>\n<p>\u30b3\u30de\u30f3\u30c9\u304c\u5b8c\u4e86\u3059\u308b\u3068 &#8220;hello2&#8221; \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u3067\u304d\u3066\u3044\u307e\u3059\u306e\u3067\u3001&#8221;hello2&#8243;\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ ls\r\nhello  hello2\r\n$cd hello2\r\n<\/code><\/pre>\n<p>&#8220;hello2&#8243;\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u306f\u3001&#8221;Cargo.toml&#8221;\u30d5\u30a1\u30a4\u30eb\u3068\u3001&#8221;src&#8221;\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u3067\u304d\u3066\u3044\u307e\u3059\u3002<br \/>\n&#8220;Cargo.toml&#8221;\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8a2d\u5b9a\u30d5\u30a1\u30eb\u3067\u3059\u3002<br \/>\n&#8220;src&#8221;\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304c\u3067\u304d\u307e\u3059\u3002\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u306f&#8221;main.rs&#8221;\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ ls\r\nCargo.toml  src\r\n$ ls src\r\nmain.rs\r\n<\/code><\/pre>\n<h2>\u30b3\u30fc\u30c9\u306e\u7de8\u96c6<\/h2>\n<p>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e&#8221;main.rs&#8221;\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>fn main() {\r\n\r\n    println!(\"Hello, world2!\");\r\n    println!(\"Hello, world2!\");\r\n}\r\n<\/code><\/pre>\n<h2>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d3\u30eb\u30c9<\/h2>\n<p>cargo\u306b\u3088\u308a\u7ba1\u7406\u3055\u308c\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c\u53ef\u80fd\u30d5\u30a1\u30a4\u30eb\u3092\u3064\u304f\u308b\u306b\u306f\u3001\u300c\u30d3\u30eb\u30c9\u300d\u3092\u304a\u3053\u306a\u3044\u307e\u3059\u3002<br \/>\n\u30d3\u30eb\u30c9\u306f\u3001&#8221;cargo&#8221;\u30b3\u30de\u30f3\u30c9\u306b&#8221;build&#8221;\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3066\u304a\u3053\u306a\u3044\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ cargo build\r\n   Compiling hello2 v0.1.0 (\/mnt\/e\/wsl\/rust\/hello2)\r\n    Finished dev [unoptimized + debuginfo] target(s) in 2.37s\r\n<\/code><\/pre>\n<p>\u30d3\u30eb\u30c9\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ ls\r\nCargo.lock  Cargo.toml  src  target\r\n<\/code><\/pre>\n<p>\u5b9f\u884c\u53ef\u80fd\u30d5\u30a1\u30a4\u30eb\u306f\u3001&#8221;.\/target\/debug&#8221;\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u51fa\u6765\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ ls target\/debug\/\r\nbuild  deps  examples  hello2  hello2.d  incremental\r\n<\/code><\/pre>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ .\/target\/debug\/hello2\r\nHello, world2!\r\nHello, world2!\r\n<\/code><\/pre>\n<h1>02. \u30b3\u30e1\u30f3\u30c8<\/h1>\n<p>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u306a\u304b\u306b\u3001\u300c\u30b3\u30e1\u30f3\u30c8(comment)\u300d\u3092\u8a18\u8ff0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u30b3\u30e1\u30f3\u30c8\u306f\u3001\u305f\u3060\u306e\u8aac\u660e\u6587\u3067\u3059\u3002\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u52d5\u304d\u306b\u306f\u5f71\u97ff\u3092\u4e0e\u3048\u307e\u305b\u3093\u3002<\/p>\n<p>\u591a\u304f\u306e\u5834\u5408\u3001\u30b3\u30e1\u30f3\u30c8\u306f\u3001\u305d\u306e\u30b3\u30fc\u30c9(\u547d\u4ee4)\u304c\u4f55\u3092\u3059\u308b\u304b\u3092\u8aac\u660e\u3059\u308b\u305f\u3081\u306b\u66f8\u304d\u307e\u3059\u3002<\/p>\n<h2>\/\/ \u30b9\u30bf\u30a4\u30eb<\/h2>\n<p>\u30b3\u30e1\u30f3\u30c8\u306f\u3001 \/\/ \u306b\u7d9a\u3044\u3066\u8a18\u8ff0\u3057\u307e\u3059\u3002<br \/>\n\/\/ \u3068\u8a18\u8ff0\u3059\u308b\u3068\u3001\u305d\u306e\u884c\u306e\u305d\u308c\u4ee5\u964d\u306f\u30b3\u30e1\u30f3\u30c8\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30b3\u30e1\u30f3\u30c8\u306f\u3001\u884c\u306e\u9014\u4e2d\u3067\u3082\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>fn main() {\r\n    \/\/ Hello, World2\" \u3068\u8868\u793a\u3059\u308b\r\n    println!(\"Hello, world2!\");\r\n    println!(\"Hello, world2!\");  \/\/ Hello, World2\" \u3068\u8868\u793a\u3059\u308b \r\n}\r\n<\/code><\/pre>\n<p>\u307e\u305f\u3001\u30b3\u30e1\u30f3\u30c8\u306f\u30b3\u30fc\u30c9\u306e\u3042\u308b\u884c\u307e\u305f\u306f\u3042\u308b\u90e8\u5206\u3092\u7121\u52b9\u5316\u3059\u308b\u305f\u3081\u306b\u3082\u4f7f\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u3088\u3046\u306b\u3059\u308b\u3068\u6700\u521d\u306e&#8221;println!()&#8221;\u306f\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u306a\u304f\u306a\u308a\u307e\u3059\uff08\u5b9f\u884c\u3055\u308c\u307e\u305b\u3093\uff09\u3002<\/p>\n<pre class=\"post-pre\"><code>fn main() {\r\n    \/\/ Hello, World2\" \u3068\u8868\u793a\u3059\u308b\r\n    \/\/ println!(\"Hello, world2!\");\r\n    println!(\"Hello, world2!\");  \/\/ Hello, World2\" \u3068\u8868\u793a\u3059\u308b \r\n}\r\n<\/code><\/pre>\n<h2>\/* *\/\u30b9\u30bf\u30a4\u30eb<\/h2>\n<p>\u30b3\u30e1\u30f3\u30c8\u3068\u3057\u305f\u3044\u90e8\u5206\u3092 \/* \/ \u3067\u56f2\u3080\u3068\u3001\u305d\u306e\u7bc4\u56f2\u304c\u30b3\u30e1\u30f3\u30c8\u3068\u306a\u308a\u307e\u3059\u3002\/ \u3067\u59cb\u307e\u308a \/ \u3067\u7d42\u308f\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u306a\u304a\u3001\/\/ \u306b\u3088\u308b\u30b3\u30e1\u30f3\u30c8\u3082\u3001\/ *\/\u306e\u7bc4\u56f2\u306b\u542b\u3081\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>fn main() {\r\n    \/* \r\n    \/\/ Hello, World2\" \u3068\u8868\u793a\u3059\u308b\r\n    \/\/ println!(\"Hello, world2!\");\r\n    println!(\"Hello, world2!\");  \/\/ Hello, World2\" \u3068\u8868\u793a\u3059\u308b \r\n    *\/\r\n}\r\n<\/code><\/pre>\n<h1>03. \u5909\u6570 \u305d\u306e\uff11<\/h1>\n<p>\u5909\u6570(variable)\u3092\u4f7f\u3046\u3068\u3001\u5024\u3084\u30c7\u30fc\u30bf\u306b\u540d\u524d\u3092\u3064\u3051\u3066\u305d\u308c\u3092\u4fdd\u6301\u3057\u305f\u308a\u3001\u8a08\u7b97\u306b\u4f7f\u3063\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\nRust\u306e\u5909\u6570\u306e\u6a5f\u80fd\u306f\u591a\u5f69\u306a\u306e\u3067\u3001\u7c21\u5358\u306a\u3082\u306e\u304b\u3089\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>Rust\u306e\u5909\u6570\u306f\u3001\u304a\u304a\u304d\u304f\u308f\u3051\u30662\u7a2e\u985e\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u4e0d\u5909\u5909\u6570(immutable variable): \u5b9a\u7fa9\u3057\u305f\u3089\u5024\u3092\u5909\u66f4\u3067\u304d\u306a\u3044\u5909\u6570<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u53ef\u5909\u5909\u6570(mutable variable): \u5b9a\u7fa9\u3057\u305f\u5024\u3092\u5909\u66f4\u3067\u304d\u308b\u5909\u6570<\/ul>\n<p>Rust\u306e\u5909\u6570\u306f\u3001\u305d\u306e\u307b\u304b\u306b\u3082\u3001\u30b9\u30bf\u30c3\u30af\u306b\u7a4d\u307e\u308c\u308b\u3082\u306e\u3001\u30d2\u30fc\u30d7\u306b\u7a4d\u307e\u308c\u308b\u3082\u306e\u3001\u6240\u6709\u6a29\u304c\u3042\u308b\u3082\u306e\u3001\u6240\u6709\u6a29\u306e\u306a\u3044\u3082\u306e\u3001\u3068\u3044\u3063\u305f\u9055\u3044\u304c\u3042\u308a\u307e\u3059\u3002\u6240\u6709\u6a29\u306b\u3064\u3044\u3066\u306f\u3001\u3060\u3044\u3076\u5f8c\u3067\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>03-01. \u4e0d\u5909(immutable, \u30a4\u30df\u30e5\u30fc\u30bf\u30d6\u30eb)\u5909\u6570\u3092\u4f7f\u3046(variable01)<\/h2>\n<p>\u307e\u305a\u3001\u4e0d\u5909\u5909\u6570\u3092\u3064\u304f\u308a\u3001\u305d\u308c\u3092\u5229\u7528\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u65b0\u305f\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8variable01\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ cargo new variable01\r\n     Created binary (application) `variable01` package\r\n<\/code><\/pre>\n<p>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>fn main() {\r\n    let count = 10;\r\n\r\n    println!(\"\u30ab\u30a6\u30f3\u30c8\u6570: {}\", count);\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30d3\u30eb\u30c9\u3057\u3066\u3001\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ cargo build\r\n    Finished dev [unoptimized + debuginfo] target(s) in 0.03s\r\n$ .\/target\/debug\/variable01\r\n\u30ab\u30a6\u30f3\u30c8\u6570: 10\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306e\u89e3\u8aac\u3092\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u306f\u3001&#8221;count&#8221;\u3068\u3044\u3046\u540d\u524d\u306e\u5909\u6570\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u5909\u6570\u306b10\u306e\u6574\u6570\u5024\u3092\u4ee3\u5165\u3057\u307e\u3059\u3002<br \/>\n\u3064\u307e\u308a\u3001\u5909\u6570\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001&#8221;let&#8221;\u306e\u3042\u3068\u306b\u7d9a\u3044\u3066\u5909\u6570\u540d\u3092\u6307\u5b9a\u3057\u3001\u305d\u306e\u5024\u3092 = \u3092\u631f\u3093\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u3053\u306e\u3068\u304d\u300110 \u306e\u3088\u3046\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u4e2d\u306b\u76f4\u63a5\u6570\u5024\u306a\u3069\u306e\u30c7\u30fc\u30bf\u3092\u57cb\u3081\u8fbc\u3080\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u30c7\u30fc\u30bf\u3092\u300c\u30ea\u30c6\u30e9\u30eb\u300d\u3068\u3044\u3044\u307e\u3059\u3002\u6570\u5024\u306e\u5834\u5408\u306f\u300c\u6570\u5024\u30ea\u30c6\u30e9\u30eb\u300d\u3068\u3044\u3044\u307e\u3059\u3002<br \/>\n\u4ee3\u5165\u3059\u308b\u3068\u3001\u305d\u306e\u5024\u304c\u5909\u6570\u306b\u675f\u7e1b\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u306f\u300110\u3068\u3044\u3046\u5024\uff08\u306e\u30c7\u30fc\u30bf\uff09\u3092count\u3068\u3044\u3046\u5909\u6570\u306b\u675f\u7e1b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>let count = 10;\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306f\u3001\u6587\u5b57\u5217\u306e\u4e2d\u306b &#8220;{}&#8221; \u3092\u542b\u3093\u3067\u3044\u307e\u3059\u3002&#8221;{}&#8221;\u306f\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u3067\u3059\u3002\u3053\u306e\u90e8\u5206\u306b\u3001\u305d\u306e\u5f8c\u306b\u3064\u3065\u304f\u5f15\u6570\u6307\u5b9a\u3059\u308b\u30c7\u30fc\u30bf\u3092\u57cb\u3081\u8fbc\u3093\u3067\u8868\u793a\u3059\u308b\u3068\u3044\u3046\u610f\u5473\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>println!(\"\u30ab\u30a6\u30f3\u30c8\u6570: {}\", count);\r\n<\/code><\/pre>\n<p>\u3082\u3057&#8221;{}&#8221;\u304c\u8907\u6570\u3042\u308b\u5834\u5408\u306f\u3001\u5de6\u5074\u304b\u3089\u9806\u756a\u306b\u3042\u3066\u306f\u307e\u308a\u307e\u3059\u3002\u306a\u304a\u3001\u5f15\u6570\u306f\u5909\u6570\u3067\u3082\u30ea\u30c6\u30e9\u30eb\u3067\u3082\u3069\u3061\u3089\u3067\u3082\u3044\u3044\u3067\u3059\u3002<br \/>\n\u30b3\u30fc\u30c9\u3092\u6b21\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>fn main() {\r\n    let count = 10;\r\n\r\n    println!(\"\u30ab\u30a6\u30f3\u30c8\u6570: {}, {}, {}\", count, 20, 100);\r\n\r\n}\r\n\r\n<\/code><\/pre>\n<p>\u5f15\u6570\u306b\u6307\u5b9a\u3057\u305f3\u3064\u306e\u5024\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"post-pre\"><code>$ cargo build\r\n   Compiling variable01 v0.1.0 (\/mnt\/e\/wsl\/rust\/variable01)\r\n    Finished dev [unoptimized + debuginfo] target(s) in 0.92s\r\n$ .\/target\/debug\/variable01\r\n\u30ab\u30a6\u30f3\u30c8\u6570: 10, 20, 100\r\n<\/code><\/pre>\n<h2><\/h2>\n<pre class=\"post-pre\"><code>fn main() {\r\n    let count :i32 = 10;\r\n\r\n    println!(\"\u30ab\u30a6\u30f3\u30c8\u6570: {}\", count);\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u3068\u3053\u308d\u3067\u3001\u3053\u3053\u3067\u5b9a\u7fa9\u3057\u305f\u5909\u6570\u306f&#8221;\u4e0d\u5909\u5909\u6570&#8221;\u3067\u3001\u6700\u521d\u306b\u4ee3\u5165\u3057\u305f\u5024\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n\u5b9f\u9a13\u3068\u3057\u3066\u3001\u4e00\u65e6\u4ee3\u5165\u3057\u305f\u5024\u3092\u5909\u66f4\u3057\u3066\u307f\u308b\u3068\u3069\u3046\u306a\u308b\u304b\u3001\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30b3\u30fc\u30c9\u3092\u6b21\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u3001\u30d3\u30eb\u30c9\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u5909\u66f4\u70b9\u306f&#8221;count = 100;&#8221;\u304c\u8ffd\u52a0\u3055\u308c\u305f\u3053\u3068\u3067\u3059\u3002<br \/>\n\u3053\u308c\u306f\u3001\u5909\u6570&#8221;count&#8221;\u306b100\u306e\u5024\u3092\u4ee3\u5165\u3059\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u6700\u521d10\u3060\u3063\u305f\u5024\u3092100\u306b\u5909\u66f4\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>fn main() {\r\n    let count = 10;\r\n\r\n    count = 100;\r\n\r\n    println!(\"\u30ab\u30a6\u30f3\u30c8\u6570: {}, {}, {}\", count, 20, 100);\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306e\u30d3\u30eb\u30c9\u306f\u6b21\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u4f34\u3046\u30a8\u30e9\u30fc\u3068\u306a\u308a\u307e\u3059\u3002\u30d3\u30eb\u30c9\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"post-pre\"><code>$ cargo build\r\n:(\u7701\u7565)\r\ncannot assign twice to immutable variable\r\n:(\u7701\u7565)\r\n<\/code><\/pre>\n<p>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u300c\u4e0d\u5909\u5909\u6570\u306b2\u56de\u3001\u5024\u3092\u4ee3\u5165\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u300d\u3068\u3044\u3046\u610f\u5473\u3067\u3059\u3002<\/p>\n<h2>03-02. \u53ef\u5909(mutable, \u30a4\u30df\u30e5\u30fc\u30bf\u30d6\u30eb)\u5909\u6570\u3092\u4f7f\u3046(variable02)<\/h2>\n<p>\u5909\u6570\u3092\u53ef\u5909(\u30df\u30e5\u30fc\u30bf\u30d6\u30eb)\u3068\u3059\u308b\u3068\u3001\u5909\u6570\u306e\u5024\u3092\u5909\u66f4\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u7df4\u7fd2\u3092\u3059\u308b\u305f\u3081\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8&#8221;variable03&#8243;\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>$ cd ~\/rust\r\n$ cargo new variable02\r\n     Created binary (application) `variable02` package\r\n$ cd variable02\r\n<\/code><\/pre>\n<p>\u5148\u307b\u3069\u4f5c\u6210\u3057\u305f\u30b3\u30fc\u30c9\u3092\u3082\u3068\u306b\u3001\u6b21\u306e\u3088\u3046\u306b\u30b3\u30fc\u30c9\u3092\u5909\u66f4\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>fn main() {\r\n    let mut count = 10;\r\n\r\n    count = 100;\r\n\r\n    println!(\"\u30ab\u30a6\u30f3\u30c8\u6570: {}, {}, {}\", count, 20, 100);\r\n\r\n}\r\n\r\n<\/code><\/pre>\n<p>\u5909\u66f4\u70b9\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u304b\uff1f<br \/>\n&#8220;let&#8221;\u306e\u5f8c\u306b&#8221;mut&#8221;\u3092\u4ed8\u3051\u52a0\u3048\u305f\u3060\u3051\u3067\u3059\u3002(&#8220;mut&#8221;\u306f\u3001&#8221;mutable&#8221;\u306e\u610f\u5473\u3067\u3059\u3002)<\/p>\n<p>\u30b3\u30fc\u30c9\u304c\u5165\u529b\u3067\u304d\u305f\u3089\u3001\u3055\u3063\u305d\u304fbuild\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\nwarning(\u8b66\u544a)\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u304c\u3001\u3053\u306e\u6642\u70b9\u3067\u306f\u6c17\u306b\u3057\u306a\u304f\u3066\u3082\u5927\u4e08\u592b\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ cargo build\r\n   Compiling variable02 v0.1.0 (\/mnt\/e\/wsl\/rust\/variable02)\r\nwarning: value assigned to `count` is never read\r\n --&gt; src\/main.rs:2:13\r\n  |\r\n2 |     let mut count = 10;\r\n  |             ^^^^^\r\n  |\r\n  = note: `#[warn(unused_assignments)]` on by default\r\n  = help: maybe it is overwritten before being read?\r\n\r\nwarning: `variable02` (bin \"variable02\") generated 1 warning\r\n<\/code><\/pre>\n<p>\u30d3\u30eb\u30c9\u304c\u3067\u304d\u305f\u3089\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3059\u3002<br \/>\ncount\u306e\u5024\u304c100\u3068\u306a\u3063\u305f\u306e\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ .\/target\/debug\/variable02\r\n\u30ab\u30a6\u30f3\u30c8\u6570: 100, 20, 100\r\n<\/code><\/pre>\n<h2>03-03. \u5909\u6570\u306e\u578b(variable03)<\/h2>\n<p>\u5909\u6570\u304c\u683c\u7d0d\u3067\u304d\u308b\u30c7\u30fc\u30bf\u306f\u3001\u305d\u306e\u7279\u6027\u3092\u300c\u578b(\u304b\u305f, type)\u300d\u3067\u7279\u5b9a\u3057\u307e\u3059\u3002<br \/>\nRust\u3067\u306f\u3001\u578b\u306f\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u78ba\u5b9a\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u306e\u3088\u3046\u306a\u5236\u9650\u306e\u3042\u308b\u8a00\u8a9e\u3092\u300c\u9759\u7684\u578b\u4ed8\u304d\u8a00\u8a9e\u300d\u3068\u3044\u3044\u307e\u3059\u3002Rust\u3084C\u8a00\u8a9e\u3001Java\u3001Swift\u3001C#\u7b49\u304c\u305d\u308c\u306b\u8a72\u5f53\u3057\u307e\u3059\u3002<\/p>\n<p>\u578b\u3092\u78ba\u5b9a\u3055\u305b\u308b\u65b9\u6cd5\u306f\u3001\u76f4\u63a5\u6307\u5b9a\u3059\u308b\u304b\u3001\u660e\u78ba\u306b\u305d\u308c\u3068\u308f\u304b\u308b\u3088\u3046\u306b\u4ee3\u5165\u306a\u3069\u306e\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<h3>03-03a.\u578b\u306e\u6307\u5b9a<\/h3>\n<p>\u7df4\u7fd2\u306e\u305f\u3081\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>$ cd ~\/rust\r\n$ cargo new variable03\r\n     Created binary (application) `variable02` package\r\n$ cd variable02\r\n<\/code><\/pre>\n<p>\u7df4\u7fd2\u306e\u305f\u3081\u306e\u30b3\u30fc\u30c9\u306f\u3001\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<br \/>\n\u30b3\u30fc\u30c9\u3092\u826f\u304f\u898b\u6bd4\u3079\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n&#8220;:i32&#8243;\u304c\u5909\u6570\u540d\u306e\u524d\u306b\u8ffd\u52a0\u3055\u308c\u3066\u3044\u307e\u3059\u3002&#8221;i32&#8243;\u306f\u3001\u578b\u306e\u3072\u3068\u3064\u3067\u3001&#8221;\u7b26\u53f7\u4ed8\u304d\u6574\u6570(32bit)&#8221;\u3068\u3044\u3046\u610f\u5473\u3067\u3059\u3002<br \/>\n\u578b\u6307\u5b9a\u306f\u3001\u305d\u308c\u305e\u308c\u306e\u5909\u6570\u306e\u53f3\u5074\u306b\u4ed8\u4e0e\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>fn main() {\r\n    let mut count :i32 = 10;\r\n\r\n    count = 100;\r\n\r\n    println!(\"\u30ab\u30a6\u30f3\u30c8\u6570: {}, {}, {}\", count, 20, 100);\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u3055\u3063\u305d\u304f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046<\/p>\n<pre class=\"post-pre\"><code>$ cargo build\r\n   Compiling variable03 v0.1.0 (\/mnt\/e\/wsl\/rust\/variable03)\r\n:(\u7701\u7565)\r\n    Finished dev [unoptimized + debuginfo] target(s) in 2.39s\r\n$ .\/target\/debug\/variable03\r\n\u30ab\u30a6\u30f3\u30c8\u6570: 100, 20, 100\r\n<\/code><\/pre>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u52d5\u4f5c\u81ea\u4f53\u306f\u5909\u308f\u308a\u307e\u305b\u3093\u3002<br \/>\n\u30b3\u30fc\u30c9\u306e\u76f8\u9055\u70b9\u306f\u3001\u5909\u6570\u306e\u578b\u3092\u660e\u793a\u7684\u306b\u6307\u5b9a\u3057\u305f\u304b\u3069\u3046\u304b\u3001\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>Rust\u30b3\u30f3\u30d1\u30a4\u30e9\u306f\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u4ee3\u5165\u3059\u308b\u5024\u306e\u578b\u304c\u660e\u78ba\u306b\u5224\u660e\u3057\u3066\u3044\u308c\u3070\u3001\u305d\u306e\u578b\u3092\u4f7f\u3046\u3082\u306e\u3068\u3057\u3066\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u306f\u578b\u3092\u6307\u5b9a\u3057\u306a\u304f\u3066\u3082\u3088\u3044\u3067\u3059\u3002<br \/>\n\u3057\u304b\u3057\u306a\u304c\u3089\u3001\u305d\u306e\u5909\u6570\u306e\u4f7f\u7528\u76ee\u7684\u3092\u660e\u78ba\u5316\u3059\u308b\u305f\u3081\u306b\u3001\u3044\u3064\u3082\u5909\u6570\u306e\u578b\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3092\u5fc3\u304c\u3051\u305f\u307b\u3046\u304c\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h3>03-03b.\u5229\u7528\u3067\u304d\u308b\u578b<\/h3>\n<p>Rust\u3067\u5229\u7528\u3067\u304d\u308b\u578b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b9\u30ab\u30e9\u30fc\u578b: \u3072\u3068\u3064\u306e\u30c7\u30fc\u30bf\u3092\u8868\u73fe\u3057\u307e\u3059<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u8907\u5408\u578b: \u3044\u304f\u3064\u304b\u306e\u30c7\u30fc\u30bf\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u8868\u73fe\u3057\u307e\u3059<\/ul>\n<h4>\u30b9\u30ab\u30e9\u30fc\u578b<\/h4>\n<p>\u30b9\u30ab\u30e9\u30fc\u578b\u306f\u3001\u3072\u3068\u3064\u306e\u30c7\u30fc\u30bf\u3092\u8868\u73fe\u3057\u307e\u3059\u3002<br \/>\n\u3072\u3068\u3064\u306e\u30b9\u30ab\u30e9\u30fc\u578b\u5909\u6570\u306b\u306f\u3072\u3068\u3064\u306e\u5024\u304c\u5165\u308a\u307e\u3059\u3002<\/p>\n<p>\u25cf\u6574\u6570\u578b<\/p>\n<div>\n<div class=\"post-table\">\u30d3\u30c3\u30c8\u9577\u7b26\u53f7\u4ed8\u304d\u306e\u5834\u5408\u306e\u578b\u540d\u7b26\u53f7\u306a\u3057\u306e\u5834\u5408\u306e\u578b\u540d8-biti8u816-biti16u1632-biti32u3264-biti64u64\u30d7\u30ed\u30bb\u30c3\u30b5\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306b\u3088\u3063\u3066\u7570\u306a\u308bisizeusize<\/div>\n<\/div>\n<p>&#8220;isize&#8221;, &#8220;usize&#8221;\u306f\u3001\u30d3\u30c3\u30c8\u9577\u306f\u30d7\u30ed\u30bb\u30c3\u30b5\u306b\u3088\u308a\u7570\u306a\u308a\u307e\u3059\u300232bit\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3067\u3042\u308c\u307032bit\u3067\u300164bit\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3067\u3042\u308c\u307054bit\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u25cf\u6d6e\u52d5\u5c0f\u6570\u70b9\u578b<br \/>\n\u6d6e\u52d5\u5c0f\u6570\u70b9\u306e\u578b\u540d\u306f\u3001&#8221;f64&#8221; \u307e\u305f\u306f &#8220;f32&#8221; \u3067\u3059\u3002\u578b\u540d\u304c\u8868\u3059\u901a\u308a\u3001f64\u306e\u307b\u3046\u304c\u7cbe\u5ea6\u304c\u3088\u3044\u3067\u3059\u3002\u6700\u8fd1\u306e\u30d1\u30bd\u30b3\u30f3\u3084\u30b5\u30fc\u30d0\u5411\u3051\u30d7\u30ed\u30bb\u30c3\u30b5\u3067\u306ff64\u3067\u3082f32\u3067\u3082\u540c\u7b49\u306e\u8a08\u7b97\u901f\u5ea6\u3067\u3059\u3002\u7d44\u8fbc\u307f\u306a\u3069\u3067\u4f7f\u3046\u300c\u5c0f\u3055\u3044\u300dCPU\u3067\u306f\u3001\u8a08\u7b97\u901f\u5ea6\u304c\u7570\u306a\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u25cf\u8ad6\u7406\u5024\u578b<br \/>\n\u8ad6\u7406\u5024\u578b\u306f2\u3064\u306e\u5024\u306e\u307f\u3092\u3068\u308b\u5909\u6570\u3067\u3059\u3002true\u307e\u305f\u306ffalse\u306e\u5024\u3092\u3068\u308a\u307e\u3059\u3002<br \/>\n\u578b\u540d\u306f&#8221;bool&#8221;\u3067\u3059\u3002<\/p>\n<p>\u25cf\u6587\u5b57\u578b<br \/>\n\u6587\u5b57\u578b\u306f\u30011\u6587\u5b57\u3060\u3051\u306e\u6587\u5b57\u3092\u8868\u73fe\u3057\u307e\u3059\u3002\u578b\u540d\u306f&#8221;char&#8221;\u3067\u3059\u3002<br \/>\n2\u6587\u5b57\u4ee5\u4e0a\u304c\u9023\u306a\u3063\u305f\u5834\u5408\u306f&#8221;\u6587\u5b57\u5217&#8221;\u3068\u547c\u3070\u308c\u3001\u6587\u5b57\u3068\u306f\u533a\u5225\u3055\u308c\u307e\u3059\u3002<br \/>\n\u6587\u5b57\u30b3\u30fc\u30c9\u306fUnicode\u304c\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<br \/>\n(\u203bC\u8a00\u8a9e\u306e\u5834\u5408\u3068\u306f\u9055\u3044\u30011\u6587\u5b57\u5206\u306e\u30c7\u30fc\u30bf\u3092\u3057\u3063\u304b\u308a\u53d6\u308a\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002)<\/p>\n<h4>\u8907\u5408\u578b<\/h4>\n<p>\u25cf\u30bf\u30d7\u30eb\u578b<br \/>\n\u30bf\u30d7\u30eb\u578b\u3092\u4f7f\u3046\u3068\u3001\u8907\u6570\u306e\u5024\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3072\u3068\u3064\u306e\u30c7\u30fc\u30bf\u3068\u3057\u3066\u53d6\u308a\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u306e\u5024\u306f\u7570\u306a\u308b\u578b\u3068\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u25cf\u914d\u5217\u578b<br \/>\n\u914d\u5217\u3092\u4f7f\u3046\u3068\u3001\u540c\u3058\u578b\u306e\u5024\u3092\u8907\u6570\u53d6\u308a\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>03-03c.\u30ea\u30c6\u30e9\u30eb\u306e\u8868\u73fe<\/h3>\n<p>\u30ea\u30c6\u30e9\u30eb(literal, \u76f4\u5024\/\u76f4\u5b9a\u6570)\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u4e2d\u306b\u76f4\u63a5\u57cb\u3081\u8fbc\u3080\u6570\u5024\u3084\u6587\u5b57\u306a\u3069\u306e\u30c7\u30fc\u30bf\u3067\u3059\u3002<br \/>\n\u4f8b\u3048\u3070\u3001\u4ee5\u524d\u7d39\u4ecb\u3057\u305f\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u306e\u6570\u5024\u90e8\u5206\u306f\u3001\u300c\u30ea\u30c6\u30e9\u30eb\u300d\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>fn main() {\r\n    let mut count = 10;\r\n\r\n    count = 100;\r\n\r\n    println!(\"\u30ab\u30a6\u30f3\u30c8\u6570: {}, {}, {}\", count, 20, 100);\r\n\r\n}\r\n\r\n<\/code><\/pre>\n<p>\u30ea\u30c6\u30e9\u30eb\u306f\u3001\u7528\u3044\u308b\u30c7\u30fc\u30bf\u306e\u7a2e\u985e\u306b\u3088\u3063\u3066\u9069\u5207\u306a\u66f8\u304d\u65b9\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<div>\n<div class=\"post-table\">\u7a2e\u985e\u4f8b\u30dd\u30a4\u30f3\u30c810\u9032\u657012_345_567, 123, 12345\u6570\u5024\u3092\u305d\u306e\u307e\u307e\u8a18\u8ff0\u30013\u6841\u3054\u3068\u306b _ \u3067\u533a\u5207\u308b16\u9032\u65700x1234_5678, 0xab, 0x123456780x\u3067\u59cb\u3081\u308b\u30014\u6841\u3054\u3068\u306b _ \u3067\u533a\u5207\u308b8\u9032\u65700o1234_5670, 0o45, 0o123456700o(\u5c0f\u6587\u5b57\u306e\u30aa\u30fc)\u3067\u59cb\u3081\u308b2\u9032\u65700b1111_0000 , 0b11110000,0b1110b\u3067\u59cb\u3081\u308b\u6587\u5b57&#8217;z&#8217; , &#8216;A&#8221;'(\u30b7\u30f3\u30b0\u30eb\u30af\u30aa\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3)\u3067\u56f2\u3080\u6587\u5b57\u5217&#8221;this is a pen.&#8221; , &#8220;\u3053\u3093\u306b\u3061\u308f&#8221;&#8221;&#8221;(\u30c0\u30d6\u30eb\u30af\u30aa\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3)\u3067\u56f2\u3080<\/div>\n<\/div>\n<p>10\u9032\u6570\u306f\u305d\u306e\u307e\u307e\u66f8\u304d\u307e\u3059\u30028\u9032\u6570\u306f\u982d\u306b0o\u3092\u300116\u9032\u6570\u306f0x\u3092\u30012\u9032\u6570\u306f0b\u3092\u3064\u3051\u307e\u3059\u3002<br \/>\n\u6841\u306e\u533a\u5207\u308a\u3092\u3001\u308f\u304b\u308a\u3084\u3059\u3044\u3088\u3046\u306b _ \u3092\u4f7f\u3063\u3066\u533a\u5207\u308a\u307e\u3059\u3002\u533a\u5207\u3089\u306a\u304f\u3066\u3082\u3044\u3044\u3067\u3059\u3002\u533a\u5207\u308a\u306e\u6841\u6570\u304c\u3067\u305f\u3089\u3081\u3067\u3082\u5927\u4e08\u592b\u306a\u3088\u3046\u3067\u3059\u304c\u3001\u308f\u304b\u308a\u3084\u3059\u3044\u533a\u5207\u308a\u306b\u3057\u305f\u307b\u3046\u304c\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u6b21\u56de\u3078\u3064\u3065\u304f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rust\u304c\u6d41\u884c\u308a\u3060\u3057\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u52c9\u5f37\u3057\u3066\u307f\u308b\u3002 \u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3001\u52c9\u5f37\u30e1\u30e2\u3092\u8a18\u9332\u3059\u308b\u3002 OS\u306f Ubuntu [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-45520","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>- Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/45520-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:description\" content=\"Rust\u304c\u6d41\u884c\u308a\u3060\u3057\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u52c9\u5f37\u3057\u3066\u307f\u308b\u3002 \u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3001\u52c9\u5f37\u30e1\u30e2\u3092\u8a18\u9332\u3059\u308b\u3002 OS\u306f Ubuntu [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/45520-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-01T02:33:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T18:44:38+00:00\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45520-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/45520-2\/\",\"name\":\"- Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-03-01T02:33:22+00:00\",\"dateModified\":\"2024-04-29T18:44:38+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/45520-2\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45520-2\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"- Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/45520-2\/","og_locale":"zh_CN","og_type":"article","og_description":"Rust\u304c\u6d41\u884c\u308a\u3060\u3057\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u52c9\u5f37\u3057\u3066\u307f\u308b\u3002 \u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3001\u52c9\u5f37\u30e1\u30e2\u3092\u8a18\u9332\u3059\u308b\u3002 OS\u306f Ubuntu [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/45520-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-03-01T02:33:22+00:00","article_modified_time":"2024-04-29T18:44:38+00:00","author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45520-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/45520-2\/","name":"- Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-03-01T02:33:22+00:00","dateModified":"2024-04-29T18:44:38+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/45520-2\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45520-2\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=45520"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45520\/revisions"}],"predecessor-version":[{"id":89206,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45520\/revisions\/89206"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=45520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=45520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=45520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}