Build A unigrep software
Build A unigrep software Build A unigrep software Introduction What is unigrep? What is the purpose of this project? Build the project create a new ru
Add software to linux env
Add software to linux env 将编写的 Rust 程序加入到 Linux 的软件环境中,并使其可以作为命令直接调用(例如,通过命令unigrep),您需要执行以下步骤: 构建您的 Rust 程序: 使用cargo build --release命令在您的项目目录中构建您的 Ru
Rust Study Day7
Rust Study Day7 1. Trait Study using trait to limit the variable type fn add<T: std::ops::Add<Output = T>>(a:T, b:T) -> T {
a + b
}
using trait a
Rust Study Day6
Rust Study Day6 Rust Study Day6 - Summary 1. special enum type in Rust 2. Pattern Match Summary I’ve been studying Rust every day, but either due to b
Rust Study Day3
Rust Study Day3 Rust Study Day3 1. borrowing & ownership 2. Dangling References 1. borrowing & ownership The borrowing rule are simple: [1]-Two or mor
Nameing Convertions
Nameing Conventions 基本命名规范在 RFC 430 中定义。 对于 type-level 的构造,Rust 通常使用驼峰命名法,如:UpperCamelCase。 对于 value-level 的构造,Rust 通常使用蛇形命名法,如:snake_case。 Nameing Co
Rust study Day2
Rust study Day2 Rust study Day2 1. Owership 1.2 Pre-knowledge 2.1 Owership rules 2.2 Variables scope 1. Owership 1.2 Pre-knowledge
Rust Playground
Rust Playground Rust has an official online playground where you can directly write, compile, and run Rust code through your browser without needing t
Rust Study Day1
Rust Study Day1 Rust Study Day1 1. Hello, world! 1.2. Run Hello, world! 2. Variables, functions and process controls 2.1. Variables 2.2. Functions
Rust Installtion
Rust Installation Open the WSL2 Install rust curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
Some info pops up when installation done.