{"id":45031,"date":"2023-01-17T16:52:49","date_gmt":"2023-02-04T14:50:10","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/45031-2\/"},"modified":"2024-04-29T10:16:37","modified_gmt":"2024-04-29T02:16:37","slug":"45031-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/45031-2\/","title":{"rendered":""},"content":{"rendered":"<p>\u6700\u8fd12\u518a\u76ee\u306eRust\u672c\u3092\u8cfc\u5165\u3057\u3001\u5c11\u3057\u305a\u3064Rust\u306e\u52c9\u5f37\u3092\u9032\u3081\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u305d\u306e\u969b\u306brust-analyzer\u3092\u5165\u308c\u3066\u307f\u305f\u3089\u601d\u3044\u306e\u307b\u304b\u7d20\u6575\u3060\u3063\u305f\u306e\u3067\u305d\u308c\u306e\u7d39\u4ecb\u3067\u3059\u3002<\/p>\n<h1>rust-analyzer\u3063\u3066\u306a\u306b\uff1f<\/h1>\n<p>Rust\u306e\u5165\u529b\u88dc\u5b8c\u3084\u578b\u30c1\u30a7\u30c3\u30af\u3001\u6587\u6cd5\u30df\u30b9\u306e\u30c1\u30a7\u30c3\u30af\u306a\u3069\u3092\u884c\u3046\u305f\u3081\u306e\u8a00\u8a9e\u30b5\u30fc\u30d0\u30fc\u30d7\u30ed\u30c8\u30b3\u30eb\uff08Language Server Protocol\u3001lsp\uff09\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u524d\u307e\u3067\u306fRust\u516c\u5f0f\u3068\u306f\u95a2\u4fc2\u7121\u3044\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3057\u305f\u304c\u3001\u5b8c\u6210\u5ea6\u304c\u9ad8\u304b\u3063\u305f\u5f71\u97ff\u306a\u306e\u304b2022\u5e742\u6708\u3054\u308d\u306bRust\u516c\u5f0f\u306b\u306a\u3063\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n<blockquote><p>\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3042\u308bRust\u306e\u958b\u767a\u30c1\u30fc\u30e0\u306f\u3001Rust\u7528\u306e\u8a00\u8a9e\u30b5\u30fc\u30d0\u30d7\u30ed\u30c8\u30b3\u30eb\uff08LSP\uff09\u306e\u65b0\u305f\u306a\u5b9f\u88c5\u3067\u3042\u308brust-analyzer\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u3001Rust\u306e\u4e00\u54e1\u3068\u3057\u3066\u52a0\u308f\u3063\u305f\u3053\u3068\u3092\u30012\u670821\u65e5\uff08\u73fe\u5730\u6642\u9593\uff09\u306b\u767a\u8868\u3057\u305f\u3002<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7d39\u4ecb\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u78ba\u304b\u306b\u30ec\u30d3\u30e5\u30fc\u8a55\u4fa1\u3068\u304b\u3082\u304b\u306a\u308a\u9ad8\u304f\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<blockquote><p>\u3000rust-analyzer\u306f\u3001Rust\u306b\u3068\u3063\u3066\u975e\u5e38\u306b\u512a\u308c\u305f\u8a00\u8a9e\u30b5\u30fc\u30d0\u3067\u3042\u308b\u3060\u3051\u3067\u306a\u304f\u3001Visual Studio Code\u306e\u7d71\u8a08\u306b\u3088\u308c\u3070\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u5168\u4f53\u3067\u3082\u3063\u3068\u3082\u8a55\u4fa1\u306e\u9ad8\u3044LSP\u5b9f\u88c5\u306e1\u3064\u3067\u3042\u308b\u3068\u3044\u3046\u3002<\/p><\/blockquote>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c1637434c4406cecf54\/8-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u516c\u5f0f\u306e\u767a\u8868 :<\/p>\n<p>&nbsp;<\/p>\n<p>\u30de\u30fc\u30b1\u30c3\u30c8\u30d7\u30ec\u30a4\u30b9\u3067\u898b\u3066\u307f\u308b\u3068\u3001\u672c\u8a18\u4e8b\u57f7\u7b46\u6642\u70b9\u3067\u7d0475\u4e07\u5f31\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3068165\u4ef6\u306e\u30ec\u30d3\u30e5\u30fc\u8a55\u4fa1\u30014.9 \/ 5.0\u3068\u3044\u3046\u8a55\u4fa1\u306e\u9ad8\u3055\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c1637434c4406cecf54\/12-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u307e\u305f\u3001\u4eca\u307e\u3067\u4f7f\u308f\u308c\u3066\u3044\u305fRust\u516c\u5f0f\u306eRust Language Server\u306elsp\u306f2022\u5e747\u6708\u306e\u767a\u8868\uff069\u6708\u306e\u6700\u5f8c\u306e\u30ea\u30ea\u30fc\u30b9\u3092\u6301\u3063\u3066\u5ec3\u6b62\u3068\u306a\u308a\u307e\u3059\u3002\u4eca\u5f8c\u306f\u516c\u5f0f\u304b\u3089\u3082rust-analyzer\u3092\u4f7f\u3063\u3066\u306d\u3001\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h1>rust-analyzer\u306eVS Code\u3078\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h1>\n<p>\u79c1\u306e\u5834\u5408\u7279\u306b\u4f55\u3082\u8003\u3048\u305a\u306bVS Code\u306e\u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308c\u3070\u6709\u52b9\u306b\u306a\u308a\u307e\u3057\u305f\uff08VS Code\u306e\u62e1\u5f35\u6a5f\u80fd\u95a2\u4fc2\u306e\u691c\u7d22\u30d5\u30a9\u30fc\u30e0\u3067rust-analyzer\u3068\u691c\u7d22\u3059\u308c\u3070\u51fa\u3066\u304f\u308b\u3068\u601d\u3044\u307e\u3059\uff09\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c1637434c4406cecf54\/18-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u305f\u3060\u3001\u6700\u521d\u306b\u5c11\u3057\u8e93\u3044\u305f\u306e\u3067\u3059\u304cVS Code\u306e\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u3078\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a9\u30eb\u30c0\u306e\u8ffd\u52a0\u304c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30eb\u30fc\u30c8\u306e\u4f4d\u7f6e\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u30b1\u30fc\u30b9\u3067\u306f\u3046\u307e\u304f\u52d5\u4f5c\u3057\u3066\u304f\u308c\u307e\u305b\u3093\u3067\u3057\u305f\uff08\u4e0b\u90e8\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u30d0\u30fc\u3067\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3057\u305f\uff09\u3002<\/p>\n<p>\u4f8b\u3048\u3070Cargo.toml\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u4f4d\u7f6e\u304cyour_project_folder\/Cargo.toml\u307f\u305f\u3044\u306b\u306a\u3063\u3066\u3044\u305f\u3089\u52d5\u304d\u307e\u3057\u305f\u3002your_project_folder\/any_folder\/Cargo.toml\u307f\u305f\u3044\u306b\u9593\u306b\u30d5\u30a9\u30eb\u30c0\u304c\u631f\u307e\u308c\u3066\u3044\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u4e00\u5ea6\u30d5\u30a9\u30eb\u30c0\u3092\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u304b\u3089\u53d6\u308a\u9664\u3044\u3066\u518d\u5ea6\u8ffd\u52a0\uff06VS Code\u306e\u518d\u8d77\u52d5\u3092\u884c\u3063\u3066\u3044\u307e\u3059\uff08\u3053\u306e\u8fba\u306fRust\u306b\u6163\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u666e\u901a\u306eRust\u3067\u306f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u3092\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u306b\u8ffd\u52a0\u3059\u308b\u306e\u304cRust\u754c\u9688\u3060\u3068\u666e\u901a\u3060\u3063\u305f\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u30fb\u30fb\u30fb\uff09\u3002<\/p>\n<p>\u307e\u305f\u3001VS Code\u8d77\u52d5\u5f8c\u306b\u6700\u521d\u306b\u8af8\u3005\u304c\u6709\u52b9\u306b\u306a\u308a\u7d42\u308f\u308b\u307e\u3067\u306f\u307c\u3061\u307c\u3061\u6642\u9593\u304c\u304b\u304b\u3063\u3066\u3044\u307e\u3059\uff08\u9032\u6357\u306f\u5168\u3066\u3067\u306f\u7121\u3044\u3067\u3059\u304c\u30a8\u30c7\u30a3\u30bf\u4e0b\u90e8\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u30d0\u30fc\u306b\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u3067\u3059\uff09\u3002<\/p>\n<p>\u4e00\u5ea6\u6709\u52b9\u306b\u306a\u3063\u3066\u304b\u3089\u306f\u975e\u5e38\u306b\u5feb\u9069\u3067\u30ec\u30b9\u30dd\u30f3\u30b9\u826f\u304f\u52d5\u3044\u3066\u304f\u308c\u308b\u306e\u3067\u6700\u521d\u3060\u3051\u306e\u3093\u3073\u308a\u5f85\u3063\u3066\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<h1>rust-analyzer\u306e\u4e00\u90e8\u6a5f\u80fd\u7d39\u4ecb<\/h1>\n<p>\u4ee5\u964d\u306e\u7bc0\u3067\u89e6\u3063\u3066\u3044\u3066\u6c17\u4ed8\u3044\u305f\u7bc4\u56f2\u3067\u5404\u6a5f\u80fd\u3092\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2>\u7d39\u4ecb\u7528\u306b\u4f7f\u3046\u3082\u306e\u3084\u8a2d\u5b9a<\/h2>\n<p>\u300cGame Development with Rust and WebAssembly: Learn how to run Rust on the web while building a game\u300d\u3068\u3044\u3046\u6700\u8fd1\u767a\u58f2\u3055\u308c\u305fRust + WASM + 2D\u30b2\u30fc\u30e0\u958b\u767a\u672c\u30922\u518a\u76ee\u3067\u9032\u3081\u3066\u304a\u308a\u3001\u305d\u3061\u3089\u3067\u4f7f\u3063\u3066\u3044\u308bweb\u7cfb\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\uff08HTML Canvas\u306a\u3069\u306e\u6a5f\u80fd\u3092Rust\u304b\u3089\u66f8\u3051\u308b\u3088\u3046\u306b\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\uff09\u306a\u3069\u3092\u30d9\u30fc\u30b9\u306b\u89e6\u308c\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>Cargo.toml\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306bdependencies\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\uff08\u4e00\u90e8\u629c\u7c8b\uff09\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"err\">...<\/span>\r\n\r\n<span class=\"nn\">[dependencies]<\/span>\r\n<span class=\"py\">wasm-bindgen<\/span> <span class=\"p\">=<\/span> <span class=\"s\">\"0.2.78\"<\/span>\r\n<span class=\"py\">console_error_panic_hook<\/span> <span class=\"p\">=<\/span> <span class=\"s\">\"0.1.7\"<\/span>\r\n\r\n<span class=\"nn\">[dependencies.web-sys]<\/span>\r\n<span class=\"py\">version<\/span> <span class=\"p\">=<\/span> <span class=\"s\">\"0.3.55\"<\/span>\r\n<span class=\"py\">features<\/span> <span class=\"p\">=<\/span> <span class=\"p\">[<\/span><span class=\"s\">\"console\"<\/span><span class=\"p\">,<\/span> <span class=\"s\">\"Window\"<\/span><span class=\"p\">,<\/span> <span class=\"s\">\"Document\"<\/span><span class=\"p\">,<\/span> <span class=\"s\">\"HtmlCanvasElement\"<\/span><span class=\"p\">,<\/span> <span class=\"s\">\"CanvasRenderingContext2d\"<\/span><span class=\"p\">,<\/span> <span class=\"s\">\"Element\"<\/span><span class=\"p\">]<\/span>\r\n\r\n<span class=\"err\">...<\/span>\r\n<\/code><\/pre>\n<p>\u307e\u305f\u3001Rust\u306f\u4ee5\u4e0b\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ rustc -V\r\nrustc 1.61.0 (fe5b13d68 2022-05-18)\r\n<\/code><\/pre>\n<p>rust-analyzer\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306fv0.3.1131\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30a8\u30c7\u30a3\u30bf\u306fVS Code\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u95a2\u6570\u3084\u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\u6642\u306e\u5f15\u6570\u540d\u306e\u8868\u793a<\/h2>\n<p>rust-analyzer\u3067\u7279\u5fb4\u7684\u4e14\u3064\u3053\u308c\u306f\u826f\u3044\u30a2\u30a4\u30c7\u30a2\u30fb\u30fb\u30fb\u3068\u601d\u3063\u305f\u6a5f\u80fd\u306b\u3001\u95a2\u6570\u3084\u30e1\u30bd\u30c3\u30c9\u306a\u3069\u3092\u547c\u3073\u51fa\u3057\u305f\u969b\u306b\u5f15\u6570\u306b\u6307\u5b9a\u3057\u305f\u5909\u6570\u540d\u304c\u5f15\u6570\u540d\u3068\u305a\u308c\u3066\u3044\u308b\u969b\u306b\u30a8\u30c7\u30a3\u30bf\u4e0a\u306b\u5f15\u6570\u540d\u3092\u8868\u793a\u3057\u3066\u304f\u308c\u308b\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u30b7\u30a7\u30eb\u30d4\u30f3\u30b9\u30ad\u30fc\u306e\u30ae\u30e3\u30b9\u30b1\u30c3\u30c8\u306e\u30d5\u30e9\u30af\u30bf\u30eb\u3092\u63cf\u753b\u3059\u308bsierpinski\u3068\u3044\u3046\u95a2\u6570\u304c\u3042\u3063\u305f\u3068\u3057\u307e\u3059\u3002\u5f15\u6570\u69cb\u9020\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5f62\u3092\u60f3\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"k\">fn<\/span> <span class=\"nf\">sierpinski<\/span><span class=\"p\">(<\/span>\r\n        <span class=\"n\">context<\/span><span class=\"p\">:<\/span> <span class=\"o\">&amp;<\/span><span class=\"nn\">web_sys<\/span><span class=\"p\">::<\/span><span class=\"n\">CanvasRenderingContext2d<\/span><span class=\"p\">,<\/span>\r\n        <span class=\"n\">points<\/span><span class=\"p\">:<\/span> <span class=\"p\">[(<\/span><span class=\"nb\">f64<\/span><span class=\"p\">,<\/span> <span class=\"nb\">f64<\/span><span class=\"p\">);<\/span> <span class=\"mi\">3<\/span><span class=\"p\">],<\/span>\r\n        <span class=\"n\">depth<\/span><span class=\"p\">:<\/span> <span class=\"nb\">u8<\/span><span class=\"p\">)<\/span> <span class=\"p\">{<\/span>\r\n    <span class=\"o\">...<\/span>\r\n<\/code><\/pre>\n<p>\u3053\u308c\u3092\u547c\u3073\u51fa\u3059\u969b\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u305f\u3068\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>    <span class=\"o\">...<\/span>\r\n    <span class=\"nf\">sierpinski<\/span><span class=\"p\">(<\/span>\r\n        <span class=\"o\">&amp;<\/span><span class=\"n\">context<\/span><span class=\"p\">,<\/span>\r\n        <span class=\"p\">[(<\/span><span class=\"mf\">300.0<\/span><span class=\"p\">,<\/span> <span class=\"mf\">0.0<\/span><span class=\"p\">),<\/span> <span class=\"p\">(<\/span><span class=\"mf\">0.0<\/span><span class=\"p\">,<\/span> <span class=\"mf\">600.0<\/span><span class=\"p\">),<\/span> <span class=\"p\">(<\/span><span class=\"mf\">600.0<\/span><span class=\"p\">,<\/span> <span class=\"mf\">600.0<\/span><span class=\"p\">)],<\/span>\r\n        <span class=\"mi\">5<\/span><span class=\"p\">);<\/span>\r\n<\/code><\/pre>\n<p>\u3059\u308b\u3068rust-analyzer\u306b\u3088\u3063\u3066\u30a8\u30c7\u30a3\u30bf\u4e0a\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306bpoints: \u3084depth: \u3068\u3044\u3063\u305f\u5f15\u6570\u540d\u304c\u8868\u793a\u3055\u308c\u307e\u3059\uff08\u8868\u793a\u3055\u308c\u308b\u3060\u3051\u3067\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u306b\u306f\u66f8\u304b\u308c\u3066\u304a\u3089\u305a\u3001\u30b3\u30d4\u30da\u306a\u3069\u3092\u3057\u3066\u3082\u305d\u308c\u3089\u306f\u542b\u307e\u308c\u307e\u305b\u3093\uff09\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c1637434c4406cecf54\/41-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u307e\u308b\u3067\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\u306e\u3088\u3046\u306b\u5404\u5f15\u6570\u304c\u3069\u306e\u5f15\u6570\u306a\u306e\u304b\u304c\u5206\u304b\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u666e\u6bb5Python\u3092\u66f8\u3044\u3066\u3044\u308b\u3068\u304d\u306a\u3069\u306f\u307b\u307c\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\u3070\u304b\u308a\u3092\u4f7f\u3063\u3066\u304a\u308a\u3001\u57fa\u672c\u7684\u306b\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\u306e\u65b9\u304c\u597d\u307f\u3067\u3059\u3002\u3053\u306e\u8fba\u306f\u4ee5\u524d\u8a18\u4e8b\u306b\u3082\u3057\u3066\u3044\u308b\u305f\u3081\u5272\u611b\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4e00\u65b9\u3067Rust\u3067\u306f\uff08\u3053\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u308b\u6642\u70b9\u3067\u306f\u6050\u3089\u304f\uff09\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\u306e\u6a5f\u80fd\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5c11\u3057\u3053\u306e\u70b9\u306f\u4ee5\u524dRust\u3067\u6c17\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u3001\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\u7684\u306b\u5206\u304b\u308a\u3084\u3059\u304f\u306a\u308b\u306e\u306f\u5927\u5909\u826f\u3044\u306a\u3068\u601d\u3044\u307e\u3059\u3002\u3053\u306e\u8fba\u306f\u691c\u7d22\u3057\u3066\u3044\u305f\u3089Twitter\u3067\u540c\u3058\u3088\u3046\u306a\u65b9\u304c\u3044\u3089\u3063\u3057\u3083\u3063\u305f\u306e\u3067\u79c1\u4ee5\u5916\u306b\u3082\u6c17\u306b\u306a\u3063\u3066\u3044\u308b\u65b9\u304c\u5c11\u3057\u306f\u3044\u3089\u3063\u3057\u3083\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3061\u306a\u307f\u306b\u3067\u3059\u304c\u5f15\u6570\u540d\u3068\u5909\u6570\u540d\u304c\u4e00\u81f4\u3057\u3066\u3044\u308b\u3068\u304d\u306f\u8868\u793a\u3055\u308c\u306a\u3044\u3088\u3046\u3067\u3059\u3002\u3053\u308c\u306f\u540c\u3058\u540d\u524d\u304c\u8868\u793a\u3055\u308c\u3066\u3082\u90aa\u9b54\u306b\u306a\u308b\u3060\u3051\u3060\u3088\u306d\u30fb\u30fb\u30fb\u3068\u3044\u3046\u611f\u3058\u306a\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br \/>\n\u524d\u51fa\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u306f\u7b2c\u4e00\u5f15\u6570\u306econtext\u5f15\u6570\u306b\u95a2\u3057\u3066\u306f\u5f15\u6570\u540d\u304c\u8868\u793a\u3055\u308c\u305a\u306b\u30b9\u30ad\u30c3\u30d7\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u578b\u63a8\u8ad6\u306b\u3088\u308b\u578b\u306e\u8868\u793a<\/h2>\n<p>\u3053\u3061\u3089\u3082rust-analyzer\u3067\u826f\u3044\u306a\u3068\u601d\u3063\u305f\u6a5f\u80fd\u306a\u306e\u3067\u3059\u304c\u3001\u578b\u63a8\u8ad6\u3092\u4f7f\u3063\u3066\u5909\u6570\u306a\u3069\u3078\u306e\u578b\u306e\u6307\u5b9a\u3092\u30b9\u30ad\u30c3\u30d7\u3057\u305f\u969b\u306b\u3082\u578b\u3092\u8868\u793a\u3057\u3066\u304f\u308c\u307e\u3059\u3002<br \/>\n\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u305f\u3068\u3057\u307e\u3059\u3002\u8fd4\u5374\u3055\u308c\u308b\u5024\u306e\u578b\u306fDocument\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>    <span class=\"o\">...<\/span>\r\n    <span class=\"k\">let<\/span> <span class=\"n\">document<\/span> <span class=\"o\">=<\/span> <span class=\"n\">window<\/span><span class=\"nf\">.document<\/span><span class=\"p\">()<\/span><span class=\"nf\">.unwrap<\/span><span class=\"p\">();<\/span>\r\n<\/code><\/pre>\n<p>\u305d\u3046\u3059\u308b\u3068rust-analyzer\u304c\u578b\u63a8\u8ad6\u7d50\u679c\u3092\u30a8\u30c7\u30a3\u30bf\u4e0a\u3067\u8868\u793a\u3057\u3066\u304f\u308c\u307e\u3059\u3002: Document\u3068\u3044\u3046\u8868\u793a\u304c\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c1637434c4406cecf54\/53-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u203b\u3053\u3061\u3089\u3082\u30b3\u30d4\u30da\u306a\u3069\u3057\u3066\u3082\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u4e0a\u306e\u7d50\u679c\u306b\u306f\u542b\u307e\u308c\u307e\u305b\u3093\u3002\u3042\u304f\u307e\u3067\u8868\u793a\u306e\u307f\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u578b\u63a8\u8ad6\u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u3001\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc\u3059\u308c\u3070\u578b\u306f\u78ba\u8a8d\u3067\u304d\u305f\u308a\u306f\u3057\u307e\u3059\u304c\u30a8\u30c7\u30a3\u30bf\u4e0a\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u3066\u3082\u5feb\u9069\u306a\u306e\u3067\u3053\u308c\u306f\u826f\u3044\u306a\u3068\u601d\u3044\u307e\u3057\u305f\u3002\u578b\u63a8\u8ad6\u306b\u3088\u308b\u30bf\u30a4\u30d4\u30f3\u30b0\u3092\u6e1b\u3089\u3057\u3064\u3064\u3082\u901a\u5e38\u306e\u3088\u3046\u306b\u578b\u3092\u660e\u793a\u3057\u305f\u6642\u3068\u540c\u3058\u3088\u3046\u306a\u53ef\u8aad\u6027\u3092\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u30e1\u30bd\u30c3\u30c9\u30c1\u30a7\u30fc\u30f3\u3092\u6539\u884c\u4ed8\u304d\u3067\u4f7f\u3063\u305f\u5834\u5408\u5404\u30e1\u30bd\u30c3\u30c9\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u306e\u578b\u3082\u8868\u793a\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u3053\u306e\u6a5f\u80fd\u3082\u30e1\u30bd\u30c3\u30c9\u30c1\u30a7\u30fc\u30f3\u306e\u904e\u7a0b\u304c\u5206\u304b\u308a\u3084\u3059\u304f\u3066\u30b3\u30fc\u30c9\u304c\u8aad\u307f\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3057\u500b\u4eba\u7684\u306b\u306fRust\u306b\u3082\u6163\u308c\u3066\u3044\u306a\u3044\u306e\u3067Rust\u306e\u52c9\u5f37\u306b\u3082\u306a\u308a\u307e\u3059\uff08\u300c\u3042\u30fc\u3001\u904e\u7a0b\u3067\u306f\u3007\u3007\u306e\u578b\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u306d\u30fb\u30fb\u30fb\u7684\u306b\u300d\uff09\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u304c\u3042\u3063\u305f\u3068\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>    <span class=\"o\">...<\/span>\r\n    <span class=\"k\">let<\/span> <span class=\"n\">context<\/span> <span class=\"o\">=<\/span> <span class=\"n\">canvas<\/span>\r\n        <span class=\"nf\">.get_context<\/span><span class=\"p\">(<\/span><span class=\"s\">\"2d\"<\/span><span class=\"p\">)<\/span>\r\n        <span class=\"nf\">.unwrap<\/span><span class=\"p\">()<\/span>\r\n        <span class=\"nf\">.unwrap<\/span><span class=\"p\">()<\/span>\r\n        <span class=\"py\">.dyn_into<\/span><span class=\"p\">::<\/span><span class=\"o\">&lt;<\/span><span class=\"nn\">web_sys<\/span><span class=\"p\">::<\/span><span class=\"n\">CanvasRenderingContext2d<\/span><span class=\"o\">&gt;<\/span><span class=\"p\">()<\/span>\r\n        <span class=\"nf\">.unwrap<\/span><span class=\"p\">();<\/span>\r\n<\/code><\/pre>\n<p>unwrap\u304c\u8907\u6570\u3042\u308b\u7406\u7531\u3084dyn_into\u306f\u30ad\u30e3\u30b9\u30c8\u3060\u3088\u3001\u3068\u3044\u3063\u305f\u8aac\u660e\u304c\u66f8\u7c4d\u3084\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u66f8\u304b\u308c\u3066\u3044\u3066\u7406\u7531\u306f\u7d0d\u5f97\u3067\u304d\u3066\u3082\u5199\u7d4c\u306a\u3069\u306e\u6642\u306f\u826f\u304f\u3066\u3082\u81ea\u5206\u3067\u66f8\u304f\u3068\u304d\u306f\u500b\u6570\u3084\u9806\u756a\u306a\u3069\u3092\u9593\u9055\u3048\u305a\u306b\u3055\u304f\u3055\u304f\u3068\u66f8\u3051\u308b\u81ea\u4fe1\u304c\u7121\u3044\u305e\u30fb\u30fb\u30fb\u3068\u611f\u3058\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3057\u304b\u3057rust-analyzer\u3092\u4f7f\u3046\u3068\u30a8\u30c7\u30a3\u30bf\u4e0a\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8868\u793a\u306b\u306a\u308a\u307e\u3059\u3002\u30e1\u30bd\u30c3\u30c9\u30c1\u30a7\u30fc\u30f3\u306e\u904e\u7a0b\u306e\u578b\u304c\u3059\u3050\u306b\u78ba\u8a8d\u3067\u304d\u308b\u306e\u3067\u300c\u306a\u305c\u3053\u306e\u8a18\u8ff0\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u304b\u300d\u300c\u5404\u30b9\u30c6\u30c3\u30d7\u3067\u3069\u3093\u306a\u578b\u306e\u5909\u5316\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u304b\u300d\u306a\u3069\u304c\u4e00\u76ee\u3067\u5206\u304b\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c1637434c4406cecf54\/61-0.png\" alt=\"image.png\" \/><\/div>\n<h2>\u4f7f\u308f\u308c\u3066\u3044\u306a\u3044use\u306e\u8b66\u544a<\/h2>\n<p>\u203b\u3053\u3053\u304b\u3089\u5148\u306f\u4ed6\u306e\u8a00\u8a9e\u3067\u306elsp\u3084Lint\u3068\u304b\u3067\u3082\u826f\u304f\u3042\u308b\u6a5f\u80fd\u3068\u306a\u308a\u307e\u3059\u304crust-analyzer\u3067\u3082\u305d\u306e\u6a5f\u80fd\u3042\u308b\u3088\u3001\u3068\u3044\u3046\u7d39\u4ecb\u3068\u3057\u3066\u4e00\u5fdc\u89e6\u308c\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>Python\u3084js\u3067\u8a00\u3046\u3068\u3053\u308d\u306eimport\u7684\u306a\u3082\u306e\u306b\u306a\u308a\u307e\u3059\u304c\u3001use\u306e\u4f7f\u308f\u308c\u3066\u3044\u306a\u3044\u3082\u306e\u3092\u8b66\u544a\u8868\u793a\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306a\u3069\u306b\u3082\u8b66\u544a\u8868\u793a\u3057\u3066\u304f\u308c\u305f\u308a\u306f\u3057\u307e\u3059\u304c\u30a8\u30c7\u30a3\u30bf\u4e0a\u3067\u3082\u78ba\u8a8d\u3067\u304d\u308b\u306e\u306f\u5feb\u9069\u3067\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070web_sys::console\u3068\u3044\u3046\u3082\u306e\u3092\u4f7f\u3063\u3066\u3044\u306a\u3051\u308c\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6587\u5b57\u8272\u304c\u6697\u304f\u306a\u308a\u4e0b\u90e8\u306b\u9ec4\u8272\u306e\u6ce2\u7dda\u304c\u4ed8\u304d\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c1637434c4406cecf54\/66-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc\u3057\u3066\u307f\u308b\u3068unused import\u3068\u8868\u793a\u3055\u308c\u3001\u4f7f\u308f\u308c\u3066\u3044\u306a\u3044import\uff08use\uff09\u3068\u3044\u3046\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c1637434c4406cecf54\/68-0.png\" alt=\"image.png\" \/><\/div>\n<h2>\u30b7\u30f3\u30bf\u30c3\u30af\u30b9\u30cf\u30a4\u30e9\u30a4\u30c8<\/h2>\n<p>rust-analyzer\u306e\u6700\u521d\u306e\u8d77\u52d5\u304c\u7d42\u308f\u3063\u305f\u5f8c\u306f\u5404\u7a2e\u30b7\u30f3\u30bf\u30c3\u30af\u30b9\u30cf\u30a4\u30e9\u30a4\u30c8\u304c\u52b9\u304d\u307e\u3059\u3002\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30fc\u306ecrate\u95a2\u4fc2\u3067\u3082\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c1637434c4406cecf54\/71-0.png\" alt=\"image.png\" \/><\/div>\n<h2>\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc\u6642\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u30b3\u30e1\u30f3\u30c8\u306e\u8868\u793a<\/h2>\n<p>Python\u3067\u8a00\u3046\u3068\u3053\u308d\u306edocstring\u3001js\u3067\u8a00\u3046\u3068\u3053\u308d\u306eJSDoc\u7684\u306a\u3082\u306e\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc\u6642\u306bRust\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u30b3\u30e1\u30f3\u30c8\u3092\u8868\u793a\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<p>\u203b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u30b3\u30e1\u30f3\u30c8\u306b\u95a2\u3057\u3066\u306f\u4ee5\u524d\u8a18\u4e8b\u3092\u66f8\u3044\u305f\u306e\u3067\u305d\u3061\u3089\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>crate\u3001trait\u3001\u95a2\u6570\u3001\u30e1\u30bd\u30c3\u30c9\u306a\u3069\u30c9\u30ad\u30e5\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u30b3\u30e1\u30f3\u30c8\u304c\u66f8\u304b\u308c\u3066\u3044\u308b\u3082\u306e\u306f\u8af8\u3005\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c1637434c4406cecf54\/77-0.png\" alt=\"image.png\" \/><\/div>\n<h2>Go to Definition<\/h2>\n<p>\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3066Go to Definition\u3092\u9078\u629e\u3057\u305f\u308a\u3001\u5bfe\u8c61\u306b\u30ab\u30fc\u30bd\u30eb\u304c\u5f53\u305f\u3063\u3066\u3044\u308b\u72b6\u614b\u3067F12\u30ad\u30fc\u3092\u62bc\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u3067\u5909\u6570\u3084\u95a2\u6570\u3001\u30af\u30e9\u30b9\u306a\u3069\u306e\u5b9a\u7fa9\u3078\u3068\u98db\u3076\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u81ea\u8eab\u3067\u5b9a\u7fa9\u3057\u305f\u3082\u306e\u4ee5\u5916\u3067\u3082\u3001\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30fc\u306ecrate\u3068\u304b\u3067\u3082\u98db\u3076\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c1637434c4406cecf54\/81-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30fc\u306e\u3082\u306e\u306b\u98db\u3093\u3067\u307f\u305f\u4f8b :<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c1637434c4406cecf54\/83-0.png\" alt=\"image.png\" \/><\/div>\n<h2>\u95a2\u6570\u3084\u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\u6642\u306e\u5f15\u6570\u60c5\u5831\u306e\u8868\u793a<\/h2>\n<p>\u3053\u306e\u8fba\u3082\u826f\u304f\u3042\u308b\u6a5f\u80fd\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u95a2\u6570\u3084\u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\u6642\u306b\u5f15\u6570\u60c5\u5831\u3084\u5f15\u6570\u306e\u578b\u3001\u73fe\u5728\u5165\u529b\u3057\u3066\u3044\u308b\u5f15\u6570\u4f4d\u7f6e\u306e\u9752\u8272\u306e\u30cf\u30a4\u30e9\u30a4\u30c8\u306a\u3069\u3092\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c1637434c4406cecf54\/86-0.png\" alt=\"image.png\" \/><\/div>\n<h1>\u53c2\u8003\u30b5\u30a4\u30c8\u30fb\u53c2\u8003\u6587\u732e<\/h1>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd12\u518a\u76ee\u306eRust\u672c\u3092\u8cfc\u5165\u3057\u3001\u5c11\u3057\u305a\u3064Rust\u306e\u52c9\u5f37\u3092\u9032\u3081\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u305d\u306e\u969b\u306brust-analyzer\u3092 [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-45031","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\/45031-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:description\" content=\"\u6700\u8fd12\u518a\u76ee\u306eRust\u672c\u3092\u8cfc\u5165\u3057\u3001\u5c11\u3057\u305a\u3064Rust\u306e\u52c9\u5f37\u3092\u9032\u3081\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u305d\u306e\u969b\u306brust-analyzer\u3092 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/45031-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-04T14:50:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T02:16:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c1637434c4406cecf54\/8-0.png\" \/>\n<meta name=\"author\" content=\"\u6e05, \u5b87\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6e05, \u5b87\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \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\/45031-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/45031-2\/\",\"name\":\"- Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-02-04T14:50:10+00:00\",\"dateModified\":\"2024-04-29T02:16:37+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/45031-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\/1a6ecd3d914d22a5ac32791ffc1fbd8e\",\"name\":\"\u6e05, \u5b87\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g\",\"caption\":\"\u6e05, \u5b87\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45031-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\/45031-2\/","og_locale":"zh_CN","og_type":"article","og_description":"\u6700\u8fd12\u518a\u76ee\u306eRust\u672c\u3092\u8cfc\u5165\u3057\u3001\u5c11\u3057\u305a\u3064Rust\u306e\u52c9\u5f37\u3092\u9032\u3081\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u305d\u306e\u969b\u306brust-analyzer\u3092 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/45031-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-02-04T14:50:10+00:00","article_modified_time":"2024-04-29T02:16:37+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c1637434c4406cecf54\/8-0.png"}],"author":"\u6e05, \u5b87","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6e05, \u5b87","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45031-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/45031-2\/","name":"- Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-02-04T14:50:10+00:00","dateModified":"2024-04-29T02:16:37+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/45031-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\/1a6ecd3d914d22a5ac32791ffc1fbd8e","name":"\u6e05, \u5b87","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g","caption":"\u6e05, \u5b87"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45031-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\/45031","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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=45031"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45031\/revisions"}],"predecessor-version":[{"id":84670,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45031\/revisions\/84670"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=45031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=45031"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=45031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}