摘要: 1、安装rust-analyzer 它会实时编译和分析你的 Rust 代码,提示代码中的错误,并对类型进行标注。 参考手册:https://rust-analyzer.github.io/manual.html。 2、安装Rust Syntax Rust Syntax为代码提供语法高亮。 3、安装c 阅读全文
posted @ 2022-08-16 11:13 Coder个人博客 阅读(258) 评论(0) 推荐(0)
摘要: switch...case一般写法: switch (表达式) { case data1 : 语句1 break; case data2 : 语句1 break; case data3 : 语句1 break; case data4 : 语句1 break; ... default : 语句n br 阅读全文
posted @ 2022-08-16 11:01 Coder个人博客 阅读(188) 评论(0) 推荐(0)
摘要: 1、使用Rustup安装 执行如下命令 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh 执行结果如下: 在这里使用默认的安装,执行结果如下: 2、配置Rust环境变量 当出现Rust is installed now. G 阅读全文
posted @ 2022-08-16 09:20 Coder个人博客 阅读(338) 评论(0) 推荐(0)