baicai

白菜

一个勤奋的代码搬运工!

Rust Learning Guide

Understanding#

Generally speaking, before deciding to learn a new language, one would first get a general understanding of the characteristics and current development status of the language. At this time, it is recommended to visit the Rust official website https://rust-lang.org

Rust Official Documentation#

Most of the learning or reference documents for the Rust language are listed on the Rust Learning Guide Page and Rust Official Documentation Homepage. Currently, the Rust official team has split the relevant documents into different repositories:

There are many other official or unofficial related documents:

Some of the source files of the above documents are located in subdirectories of the rust and cargo repositories: Rust Documentation and cargo Documentation.

Rust Resources#

Chinese resources related to Rust, including websites, or articles or books about Rust in China.

Here are the currently collected Chinese websites for Rust:

Rust Language Chinese Community: https://rust.cc/

Rust Wiki: https://rustwiki.org/

English-Chinese Glossary of Rust Terminology#

👉 Some come from the English-Chinese Glossary of Rust repository, included here for the convenience of Rust learners to consult uniformly. If any errors or areas for improvement are found, please point out or correct them in the original repository.

EnglishChineseNote
A
Abstract Syntax Tree抽象语法树
ABI应用程序二进制接口Application Binary Interface abbreviation
accumulator累加器
accumulator variable累加器变量
ahead-of-time compiled预编译
ahead-of-time compiled language预编译语言
alias别名
aliasing别名使用See Wikipedia
angle brackets尖括号,“<” 和 “>”
annotate标注,注明(动词)
annotation标注,注明(名词)
ARC原子引用计数器Atomic Reference Counter
anonymity匿名
argument参数,实参,实际参数Argument and
parameter can be used interchangeably if not strictly distinguished
argument type参数类型
assignment赋值
associated functions关联函数
associated items关联项
associated types关联类型
asterisk星号(*)
atomic原子的
attribute属性
automated building自动构建
automated test自动测试,自动化测试
B
baroque macro巴洛克宏
benchmark基准
binary二进制的
binary executable二进制的可执行文件
bind绑定
block语句块,代码块
boolean布尔型,布尔值
borrow check借用检查
borrower借用者,借入者
borrowing借用
bound约束,限定,限制This word is similar to constraint,
constraint is translated as "约束" in C#
box箱子,盒子,装箱类型Generally not translated, as a verb it means "to box",
an ownership smart pointer
boxed装箱,装包
boxing装箱,装包
brace大括号,“{” 或 “}”
buffer缓冲,缓冲区,缓冲器,缓存
build构建
builder pattern创建者模式
C
call调用
caller调用者
capacity容器
capture捕获
cargo(Rust package manager, not translated)As a noun, it means "cargo",
as a verb, it means "to load cargo"
cargo-fyCargo 化,使用 Cargo 创建项目
case analysis事例分析
cast类型转换,转型
casting类型转换
chaining method call链式方法调用
channel信道,通道
closure闭包
coercion强制类型转换,强制转换Coercion originally means "force, coercion"
collection集合See Wikipedia
combinator组合算子,组合器
comma逗号,“,”
command命令
command line命令行
comment注释
compile编译(动词)
compile time编译期,编译期间,编译时
compilation编译(名词)
compilation unit编译单元
compiler编译器
compiler intrinsics编译器固有功能
compound复合(类型,数据)
concurrency并发
conditional compilation条件编译
configuration配置
constructor构造器
consumer消费者
container容器
container type容器类型
convert转换,转化,转
copy复制,拷贝
crate包,包装箱,装包Generally not translated, crate is the basic compilation unit of Rust
curly braces大括号,包含 “{” 和 “}”
custom type自定义类型
D
dangling pointer悬垂指针use after free
data race数据竞争
dead code死代码,无效代码,不可达代码
deallocate释放,重新分配
declare声明
deep copy深拷贝,深复制
dependency依赖
deref coercions强制多态
dereference解引用Sometimes abbreviated as Deref in Rust articles
derive派生
designator指示符
destruction销毁,毁灭
destructor析构器,析构函数
destructure解构
destructuring解构,解构赋值
desugar脱糖
diverge function发散函数
device drive设备驱动
directory目录
dispatch分发
diverging functions发散函数
documentation文档
dot operator点运算符
DST动态大小类型dynamic sized type, generally not translated,
use the English abbreviation
dynamic language动态类型语言
dynamic trait type动态特质类型
E
enumeration枚举
encapsulation封装
equality test相等测试
elision省略
exhaustiveness checking穷尽性检查,无遗漏检查
expression表达式
expression-oriented language面向表达式的语言
explicit显式
explicit discriminator显式的辨别值
explicit type conversion显式类型转换
extension扩展名
extern外,外部Not translated when used as a keyword
F
fat pointer胖指针
feature gate功能开关
field字段
field-level mutability字段级别可变性
file文件
fmt格式化,是 format 的缩写
formatter格式化程序,格式化工具,格式器
floating-point number浮点数
flow control流程控制
Foreign Function Interface (FFI)外部语言函数接口
fragment specifier片段分类符
free variables自由变量
freeze冻结
function函数
function declaration函数声明
functional函数式
G
garbage collector垃圾回收
generalize泛化,泛型化
generator生成器
generic泛型
generic type泛型类型
growable可增长的
guard守卫
H
handle error句柄错误
hash哈希,哈希值,散列
hash map散列映射,哈希表
heap
hierarchy层次,分层,层次结构
higher rank lifetime高阶生命周期
higher rank trait bound高阶特质约束
higher tank type高阶类型
hygiene卫生
hygienic macro system卫生宏系统
I
ICE编译内部错误internal compiler error abbreviation
immutable不可变的
implement实现
implementor实现者
implicit隐式
implicit discriminator隐式的辨别值
implicit type conversion隐式类型转换
import导入
in assignment在赋值(语句)
index索引English plural form: indices
infer推导(动词)
inference推导(名词)
inherited mutability承袭可变性
inheritance继承
integrated development
environment (IDE)
集成开发环境Usually written as IDE in Chinese literature
integration-style test集成测试
interior mutability内部可变性
installer安装程序,安装器
instance实例
instance method实例方法
integer整型,整数
interact相互作用,相互影响
interior mutability内部可变性
intrinsic固有的
invoke调用
item项,条目,项目
iterate重复
iteration迭代
iterator迭代器
iterator adaptors迭代器适配器
iterator invalidation迭代器失效
L
LHS左操作数informal abbreviation of left-hand side,
opposite of RHS
lender借出者
library
lifetime生存时间,寿命,生命周期
lifetime elision生命周期省略
link链接
linked-list链表
lint(不译)Lint literally means "lint, fluff", this word in
computer science refers to suspicious and
unstructured fragments of program code, see Wikipedia
list列表
listener监听器
literal数据,常量数据,字面值,字面量,
字面常量,字面上的
Literal means: literal meaning (content)
LLVM(不译)Low Level Virtual Machine abbreviation,
a system for building compilers
loop循环Not translated when used as a keyword
low-level code底层代码
low-level language底层语言
l-value左值
M
main functionmain 函数,主函数
macro
map映射Generally not translated
match guard匹配守卫
memory内存
memory leak内存泄露
memory safe内存安全
meta原则,元
metadata元数据
metaprogramming元编程
metavariable元变量
method call syntax方法调用语法
method chaining方法链
method definition方法定义
modifier修饰符
module模块
monomorphization单态mono: one, morph: form
move移动,转移According to Rust's specification,
the English word transfer is more fitting than move
Reference: Rust by Example
move semantics移动语义
mutability可变性
mutable可变
mutable reference可变引用
multiple bounds多重约束
mutiple patterns多重模式
N
nest嵌套
Nightly RustRust 开发版nightly literally means "every night",
referring to code updates daily
NLL非词法生命周期non lexical lifetime abbreviation,
generally not translated
non-copy type非复制类型
non-generic非泛型
no-op空操作,空运算(This term appears in the type conversion chapter)
non-commutative非交换的
non-scalar cast非标量转换
notation符号,记号
numeric数值,数字
O
optimization优化
out-of-bounds accessing越界访问
orphan rule孤儿规则
overflow溢出,越界
own占有,拥有
owner所有者,拥有者
ownership所有权
P
package manager包管理器,软件包管理器
panic(不译)This word translates directly to "panic",
used in Rust for unrecoverable error handling
parameter参量,形参,形式参量Argument and
parameter can be used interchangeably if not strictly distinguished
parametric polymorphism参数多态
parent scope父级作用域
parentheses小括号,包括 “(” 和 “)”
parse分析,解析
parser(语法)分析器,解析器
pattern模式
pattern match模式匹配
phantom type虚类型,虚位类型Related proprietary terms:
phantom bug, phantom power
See: Haskell, Haskell/Phantom_type,
Rust/Phantom, stdlib/PhantomData
platform平台
polymorphism多态
powershell(不译)A command-line shell and scripting environment in Windows
possibility of absence不存在的可能性
precede预先?,在... 发生(或出现)
prelude(不译)Pre-imported module, literally means: overture, prelude
primitive types原生类型,基本类型,简单类型
print打印
process进程
procedural macros过程宏,程序宏
project项目,工程
prototype原型
R
race condition竞态条件
RAII资源获取即初始化(一般不译)resource acquisition is initialization abbreviation
range区间,范围
range expression区间表达式
raw identifier原始标识符
raw pointer原始指针,裸指针
RC引用计数reference counted
Reader读取器
recursive macro递归宏
reference引用
reference cycle引用循环
release发布
resource资源
resource leak资源泄露
RHS右操作数informal abbreviation of right-hand side,
opposite of LHS
root directory根目录
runtime运行时
runtime behavior运行时行为
runtime overhead运行时开销
Rust(不译)A programming language
Rustacean(不译)A general term for programmers or enthusiasts who write Rust
rustc(不译)Rust language compiler
r-value右值
S
scalar标量,数量
schedule调度
scope作用域
screen屏幕
script脚本
semicolon分号,“;”
self自身,作关键字时不译
shadow遮蔽,隐蔽,隐藏,覆盖
shallow copy浅拷贝,浅复制
signature标记
slice切片
snake case蛇形命名See: Snake case
source file源文件
source code源代码
specialization泛型特化
square平方,二次方,二次幂
square brackets中括号,“[” 和 “]”
src(不译)Abbreviation for source, referring to source code
stack
stack unwind栈解开、栈展开
statement语句
statically allocated静态分配
statically allocated string静态分配的字符串
statically dispatch静态分发
static method静态方法
string字符串
string literal字符串常量
string slices字符串片段
stringify字符串化
subscript notation下标
sugar
super父级,作关键字时不译
syntax context语法上下文
systems programming language系统级编程语言
T
tagged union标记联合
target triple多层次指标,三层 / 重 指标 / 目标triple literally means "three", but here refers to "multiple",
this term requires more discussion for translation
terminal终端
testing测试
testsuit测试套件
the least significant bit (LSB)最低数字位
the most significant bit (MSB)最高数字位
thread线程
TOML(不译)Tom's Obvious, Minimal Language
abbreviation, a configuration language
token tree令牌树?To be further considered
trait特质Literally means "characteristic, feature"
trait bound特质约束Bound means "constraint, limit"
trait object特质对象
transmute(不译)Literally means "change, transform, mutate",
not translated
trivial平凡的
troubleshooting疑难解答,故障诊断,
故障排除,故障分析
tuple元组
two's complement补码,二补数
two-word object双字对象
type annotation类型标注
type erasure类型擦除
type inference类型推导
type inference engine类型推导引擎
type parameter类型参量
type placeholder类型占位符
type signature类型标记
U
undefined behavior未定义行为
uninstall卸载
unit-like struct类单元结构体
unit struct单元结构体
"unit-style" tests单元测试
unit test单元测试
unit type单元类型
universal function call syntax
(UFCS)
通用函数调用语法
unsized types不定长类型
unwind展开
unwrap解包Tentative translation!
V
variable binding变量绑定
variable shadowing变量遮蔽,变量隐蔽,
变量隐藏,变量覆盖
variable capture变量捕获
variant变量
vector(动态数组,一般不译)Vector literally means "vector"
visibility可见性
vtable虚表
W
where clausewhere 子句,where 从句,where 分句Often translated as "clause" in official database manuals, translated as "从句" in English grammar
wrap包裹Tentative translation!
wrapped装包
wrapper装包
Y
yield产生 (收益、效益等),产出,提供
Z
zero-cost abstractions零开销抽象
zero-width space (ZWSP)零宽空格
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.