├── LICENSE
├── README.md
├── glossary-details.md
└── rust-glossary.md
/LICENSE:
--------------------------------------------------------------------------------
1 | CC0 1.0 Universal
2 |
3 | Statement of Purpose
4 |
5 | The laws of most jurisdictions throughout the world automatically confer
6 | exclusive Copyright and Related Rights (defined below) upon the creator and
7 | subsequent owner(s) (each and all, an "owner") of an original work of
8 | authorship and/or a database (each, a "Work").
9 |
10 | Certain owners wish to permanently relinquish those rights to a Work for the
11 | purpose of contributing to a commons of creative, cultural and scientific
12 | works ("Commons") that the public can reliably and without fear of later
13 | claims of infringement build upon, modify, incorporate in other works, reuse
14 | and redistribute as freely as possible in any form whatsoever and for any
15 | purposes, including without limitation commercial purposes. These owners may
16 | contribute to the Commons to promote the ideal of a free culture and the
17 | further production of creative, cultural and scientific works, or to gain
18 | reputation or greater distribution for their Work in part through the use and
19 | efforts of others.
20 |
21 | For these and/or other purposes and motivations, and without any expectation
22 | of additional consideration or compensation, the person associating CC0 with a
23 | Work (the "Affirmer"), to the extent that he or she is an owner of Copyright
24 | and Related Rights in the Work, voluntarily elects to apply CC0 to the Work
25 | and publicly distribute the Work under its terms, with knowledge of his or her
26 | Copyright and Related Rights in the Work and the meaning and intended legal
27 | effect of CC0 on those rights.
28 |
29 | 1. Copyright and Related Rights. A Work made available under CC0 may be
30 | protected by copyright and related or neighboring rights ("Copyright and
31 | Related Rights"). Copyright and Related Rights include, but are not limited
32 | to, the following:
33 |
34 | i. the right to reproduce, adapt, distribute, perform, display, communicate,
35 | and translate a Work;
36 |
37 | ii. moral rights retained by the original author(s) and/or performer(s);
38 |
39 | iii. publicity and privacy rights pertaining to a person's image or likeness
40 | depicted in a Work;
41 |
42 | iv. rights protecting against unfair competition in regards to a Work,
43 | subject to the limitations in paragraph 4(a), below;
44 |
45 | v. rights protecting the extraction, dissemination, use and reuse of data in
46 | a Work;
47 |
48 | vi. database rights (such as those arising under Directive 96/9/EC of the
49 | European Parliament and of the Council of 11 March 1996 on the legal
50 | protection of databases, and under any national implementation thereof,
51 | including any amended or successor version of such directive); and
52 |
53 | vii. other similar, equivalent or corresponding rights throughout the world
54 | based on applicable law or treaty, and any national implementations thereof.
55 |
56 | 2. Waiver. To the greatest extent permitted by, but not in contravention of,
57 | applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
58 | unconditionally waives, abandons, and surrenders all of Affirmer's Copyright
59 | and Related Rights and associated claims and causes of action, whether now
60 | known or unknown (including existing as well as future claims and causes of
61 | action), in the Work (i) in all territories worldwide, (ii) for the maximum
62 | duration provided by applicable law or treaty (including future time
63 | extensions), (iii) in any current or future medium and for any number of
64 | copies, and (iv) for any purpose whatsoever, including without limitation
65 | commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes
66 | the Waiver for the benefit of each member of the public at large and to the
67 | detriment of Affirmer's heirs and successors, fully intending that such Waiver
68 | shall not be subject to revocation, rescission, cancellation, termination, or
69 | any other legal or equitable action to disrupt the quiet enjoyment of the Work
70 | by the public as contemplated by Affirmer's express Statement of Purpose.
71 |
72 | 3. Public License Fallback. Should any part of the Waiver for any reason be
73 | judged legally invalid or ineffective under applicable law, then the Waiver
74 | shall be preserved to the maximum extent permitted taking into account
75 | Affirmer's express Statement of Purpose. In addition, to the extent the Waiver
76 | is so judged Affirmer hereby grants to each affected person a royalty-free,
77 | non transferable, non sublicensable, non exclusive, irrevocable and
78 | unconditional license to exercise Affirmer's Copyright and Related Rights in
79 | the Work (i) in all territories worldwide, (ii) for the maximum duration
80 | provided by applicable law or treaty (including future time extensions), (iii)
81 | in any current or future medium and for any number of copies, and (iv) for any
82 | purpose whatsoever, including without limitation commercial, advertising or
83 | promotional purposes (the "License"). The License shall be deemed effective as
84 | of the date CC0 was applied by Affirmer to the Work. Should any part of the
85 | License for any reason be judged legally invalid or ineffective under
86 | applicable law, such partial invalidity or ineffectiveness shall not
87 | invalidate the remainder of the License, and in such case Affirmer hereby
88 | affirms that he or she will not (i) exercise any of his or her remaining
89 | Copyright and Related Rights in the Work or (ii) assert any associated claims
90 | and causes of action with respect to the Work, in either case contrary to
91 | Affirmer's express Statement of Purpose.
92 |
93 | 4. Limitations and Disclaimers.
94 |
95 | a. No trademark or patent rights held by Affirmer are waived, abandoned,
96 | surrendered, licensed or otherwise affected by this document.
97 |
98 | b. Affirmer offers the Work as-is and makes no representations or warranties
99 | of any kind concerning the Work, express, implied, statutory or otherwise,
100 | including without limitation warranties of title, merchantability, fitness
101 | for a particular purpose, non infringement, or the absence of latent or
102 | other defects, accuracy, or the present or absence of errors, whether or not
103 | discoverable, all to the greatest extent permissible under applicable law.
104 |
105 | c. Affirmer disclaims responsibility for clearing rights of other persons
106 | that may apply to the Work or any use thereof, including without limitation
107 | any person's Copyright and Related Rights in the Work. Further, Affirmer
108 | disclaims responsibility for obtaining any necessary consents, permissions
109 | or other rights required for any use of the Work.
110 |
111 | d. Affirmer understands and acknowledges that Creative Commons is not a
112 | party to this document and has no duty or obligation with respect to this
113 | CC0 or use of the Work.
114 |
115 | For more information, please see
116 |
117 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Rust 语言术语中英文对照表
2 | ## English-Chinese Glossary of the Rust Programming Language
3 | > 持续更新中...
4 |
5 | 查看 [**Rust 术语表**](rust-glossary.md)。
6 |
7 | Rust 语言相关术语中英文对照表,词汇来源:
8 | 主要是 [The Rust Programming Language][rust-book]、[The Rust Reference][reference]、[Standard Library API Reference][rust-std]、[The Rustonomicon][rustonomicon] 和 [Rust by Example][rust-by-example] 出现的计算机术语(不局限于 Rust 语言)汇总。
9 |
10 | 此表致力提供 Rust 语言中文化的翻译标准。阅读 Rust 英文书籍的朋友也可以参照此表。目前收录的词是本人在阅读 Rust 英文材料记下的部分词,以后还在不断扩充更新,也希望学习 Rust 的同学提供未收录的术语,一起推动 Rust 语言的中文本地化,为后来学习的同学提供更多便利。由于能力所限,术语翻译出错在所难免,若您发现有误,随时欢迎纠正,谢谢!
11 |
12 | ## 发现术语翻译错误
13 |
14 | 若是发现相关的术语翻译错误或其他方面错误,随时欢迎指出错误。或者对于术语表的维护给出建议,也随时欢迎指出。
15 |
16 | 改错的方式有两种:
17 |
18 | 1. 可以 `fork` 一份仓库的内容,然后修改错误内容,最后提交 PR 到本仓库(建议方式);
19 | 2. 若是对于编辑的内容觉得麻烦,或者给出建议内容,可以在本仓库的 *Issues* 栏目提一个讨论问题,我们将会对问题进行持续的跟进并将问题解决好。
20 |
21 | ## 术语中文翻译参考
22 |
23 | 第5版《C++ Primer》中文版索引(786-838页)
24 | 第3版《算法导论》中文版索引(732-780页)
25 | 《Effective C++(第3版)》中文版和《More Effective C++》中文版的“英中简术语对照”
26 | [中国知网翻译助手][cnki]
27 | [Google 搜索][google]
28 | [Wikipedia][wikipedia]
29 | 欢迎提供更多的翻译参考来源 :-)
30 |
31 | [rust-book]:https://doc.rust-lang.org/book/
32 | [reference]:https://doc.rust-lang.org/reference/
33 | [rust-std]:https://doc.rust-lang.org/std/
34 | [rustonomicon]:https://doc.rust-lang.org/nomicon/
35 | [rust-by-example]:http://rustbyexample.com/
36 | [cnki]:http://dict.cnki.net/
37 | [google]:https://www.google.com/
38 | [wikipedia]:https://zh.wikipedia.org/wiki/
39 |
40 | ## 授权协议
41 | [](https://creativecommons.org/publicdomain/zero/1.0/) Rust 语言术语中英文对照表属于公有领域作品。
42 |
--------------------------------------------------------------------------------
/glossary-details.md:
--------------------------------------------------------------------------------
1 | 部分术语详解
2 |
--------------------------------------------------------------------------------
/rust-glossary.md:
--------------------------------------------------------------------------------
1 | # Rust 语言术语中英文对照表
2 |
3 | English 英文 | Simplified Chinese 简体中文 | Traditional Chinese 繁體中文 | Note 备注
4 | -------------------------------- | ------------------------------ | ---------------------------- | ------------
5 | **A** | | |
6 | Abstract Syntax Tree | 抽象语法树 | 抽象語法樹 |
7 | ABI | 应用程序二进制接口 | 應用程式二進位介面 | Application Binary Interface 缩写
8 | accumulator | 累加器 | 累加器 |
9 | accumulator variable | 累加器变量 | 累加器變數 |
10 | address (n.) | 地址 | 位址 |
11 | address (v.) | 寻址 | 定址 |
12 | ahead-of-time compiled | 预编译 | 預編譯 |
13 | ahead-of-time compiled language | 预编译语言 | 預編譯語言 |
14 | algebraic data types(ADT) | 代数数据类型 | 代數資料型別 |
15 | alias | 别名 | 別名 |
16 | aliasing | 别名使用 | 別名使用 | 参见 [Wikipedia](https://en.wikipedia.org/wiki/Pointer_aliasing)
17 | angle brackets | 尖括号,“<”和“>” | 尖括號,“<”和“>” |
18 | annotate | 标注,注明,标记,标识(动词) | 標註,註明,標記,標示(動詞) |
19 | annotation | 标注,注明,标记,标识(名词) | 標註,註明,標記,標示(名詞) |
20 | ARC | 原子引用计数器 | 最小參考計數器 | Atomic Reference Counter
21 | anonymity | 匿名 | 匿名 |
22 | argument | 参数,实参,实际参数 | 引數,實參,實際參數,實際引數 | 不严格区分的话, argument(参数)和
parameter(参量)可以互换地使用
23 | argument type | 参数类型 | 引數型別 |
24 | array | 数组 | 陣列 |
25 | assembler | 汇编器 | 組譯器 |
26 | assignment | 赋值 | 指派,賦值 |
27 | associated functions | 关联函数 | 關聯函式 |
28 | associated items | 关联项 | 關聯項目 |
29 | associated types | 关联类型 | 關聯型別 |
30 | asterisk | 星号(\*) | 星號(\*) |
31 | atomic | 原子的 | 最小的 |
32 | atomic operation | 原子操作 | 最小操作 |
33 | attribute | 属性 | 屬性 |
34 | automated building | 自动构建 | 自動建構 |
35 | automated test | 自动测试,自动化测试 | 自動測試,自動化測試 |
36 | **B** | | |
37 | benchmark | 基准 | 基準 |
38 | binary | 二进制的 | 二進位的 |
39 | binary executable | 二进制的可执行文件 | 二進位的執行檔 |
40 | bind | 绑定 | 綁定 |
41 | bit | 位 | 位元 |
42 | block | 语句块,代码块 | 區塊,程式碼區塊 |
43 | boolean | 布尔型,布尔值 | 布林型,布林值 |
44 | borrow check | 借用检查 | 借用檢查 |
45 | borrower | 借用者,借入者 | 借用者,借入者 |
46 | borrowing | 借用 | 借用 |
47 | bound | 约束,限定,限制 | 約束,限定,限制 | 此词和 constraint 意思相近,
constraint 在 C# 语言中翻译成“约束”
48 | box | 箱子,盒子,装箱类型 | 盒子,盒子,裝箱型別 | 一般不译,作动词时翻译成“装箱”,
具有所有权的智能指针
49 | boxed | 装箱,装包 | 裝箱,裝包 |
50 | boxing | 装箱,装包 | 裝箱,裝包 |
51 | brace | 大括号,“{”或“}” | 大括號,“{”或“}” |
52 | buffer | 缓冲,缓冲区,缓冲器 | 缓衝,緩衝區,緩衝器 |
53 | build | 构建 | 建構 |
54 | builder pattern | 创建者模式 | 建造者模式 |
55 | byte | 字节 | 位元組 |
56 | **C** | | |
57 | call | 调用 | 呼叫 |
58 | caller | 调用者 | 呼叫者 |
59 | capacity | 容量 | 容量 |
60 | capture | 捕获 | 捕獲 |
61 | cargo | (Rust 包管理器,不译) | (Rust 專案管理器,不譯) | 该词作名词时意思是“货物”,
作动词时意思是“装载货物”
62 | cargo-fy | Cargo 化,使用 Cargo 创建项目 | Cargo 化,使用 Cargo 建立專案 |
63 | case analysis | 事例分析 | 情況分析 |
64 | cast | 类型转换,转型 | 型態轉換,轉型 |
65 | casting | 类型转换 | 型態轉換 |
66 | chaining method call | 链式方法调用 | 連鎖方法呼叫 |
67 | channel | 信道,通道 | 通道,信道 |
68 | char | 字符 | 字元 | 作关键字时不译
69 | character | 字符 | 字元 |
70 | closure | 闭包 | 閉包 |
71 | coercion | 强制类型转换,强制转换 | 強制型別轉換,強制轉換 | coercion 原意是“强制,胁迫”
72 | collection | 集合 | 集合 | 参见 [Wikipedia](https://zh.wikipedia.org/wiki/%E9%9B%86%E5%90%88_(%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%A7%91%E5%AD%A6)) |
73 | combinator | 组合算子,组合器 | 組合子,組合器 |
74 | comma | 逗号,“,” | 逗號,“,” |
75 | command | 命令 | 指令 |
76 | command line | 命令行 | 指令列 |
77 | comment | 注释 | 註解 |
78 | compile | 编译(动词) | 編譯(動詞) |
79 | compile time | 编译期,编译期间,编译时 | 編譯期,編譯期間,編譯時 | |
80 | compilation | 编译(名词) | 編譯(名詞) |
81 | compilation unit | 编译单元 | 編譯單元 |
82 | compiler | 编译器 | 編譯器 |
83 | compiler intrinsics | 编译器固有功能 | 編譯器內建功能 |
84 | compound | 复合(类型,数据) | 複合(型別,資料) |
85 | concurrency | 并发 | 並行 |
86 | conditional compilation | 条件编译 | 條件編譯 |
87 | configuration | 配置 | 設定 |
88 | const | 常数,常量 | 常數,常量 | 作关键字时不译
89 | constant | 常数,常量 | 常數,常量 |
90 | constructor | 构造器 | 建構子 |
91 | consumer | 消费者 | 使用者 |
92 | container | 容器 | 容器 |
93 | container type | 容器类型 | 容器型別 |
94 | convert | 转换,转化,转 | 轉換,轉化,轉 |
95 | copy | 复制,拷贝 | 複製,拷貝 |
96 | crate | 包,包装箱,装包 | 專案,套件,包裝箱 | 一般不译,crate 是 Rust 的基本编译单元
97 | curly braces | 大括号,包含“{”和“}” | 大括號,包含“{”和“}” |
98 | custom type | 自定义类型 | 自訂型別 |
99 | Coherence | 连贯性 | | 理由是:实际上这个 Coherence 这个词在其相关 [RFC 2451](https://rust-lang.github.io/rfcs/2451-re-rebalancing-coherence.html) 中上下文语境中的意思是,让编译器推理特质更加流畅更加连贯,不要出错。所以“连贯性”更符合这个词在 Rust 中的本意。|
100 | **D** | | |
101 | dangling pointer | 悬垂指针 | 懸空指標,迷途指標 | use after free 在释放后使用
102 | data race | 数据竞争 | 資料競爭 |
103 | dead code | 死代码,无效代码,不可达代码 | 死代碼,無效代碼,不可達代碼 |
104 | deallocate | 释放,重新分配 | 釋放,重分配 |
105 | declarative macro | 声明宏 | 陳述式巨集 | 参见 [Rust 程序设计语言](https://rustwiki.org/zh-CN/book/ch19-06-macros.html#%E4%BD%BF%E7%94%A8-macro_rules-%E7%9A%84%E5%A3%B0%E6%98%8E%E5%AE%8F%E7%94%A8%E4%BA%8E%E9%80%9A%E7%94%A8%E5%85%83%E7%BC%96%E7%A8%8B)
106 | declare | 声明 | 宣告 |
107 | deep copy | 深拷贝,深复制 | 深複製,深度複製 |
108 | dependency | 依赖 | 相依項,依賴 |
109 | deque | 双端队列 | 雙端佇列 | Double-ended queue 的缩写
110 | deref coercion | 解引用强制转换 | 解參考強制轉換 |
111 | dereference | 解引用 | 解參考 | Rust 文章中有时简写为 Deref
112 | derive | 派生 | 派生 |
113 | designator | 指示符 | 指示符 |
114 | destruction | 销毁,毁灭 | 毀滅,銷毀 |
115 | destructor | 析构器,析构函数 | 解構子,解構函式 |
116 | destructure | 解构 | 解構 |
117 | destructuring | 解构,解构赋值 | 解構,解構指派,解構賦值 |
118 | desugar | 脱糖 | 去糖 |
119 | debug | 调试 | 除錯、偵錯 |
120 | debugger | 调试器 | 除錯器、偵錯器 |
121 | device drive | 设备驱动 | 設備驅動程式 |
122 | directory | 目录 | 目錄 |
123 | dispatch | 分发 | 分派 |
124 | diverge function | 发散函数 | 發散函式 |
125 | diverging functions | 发散函数 | 發散函式 |
126 | documentation | 文档 | 文件 |
127 | dot operator | 点运算符 | 點運算子 |
128 | DST | 动态大小类型 | 動態大小型別 | dynamic sized type,一般不译,
使用英文缩写形式
129 | dynamic language | 动态类型语言 | 動態型別語言 |
130 | dynamic trait type | 动态特质类型 | 動態特質型別 |
131 | **E** | | |
132 | enumeration | 枚举 | 列舉 |
133 | encapsulation | 封装 | 封裝 |
134 | equality test | 相等测试 | 相等測試 |
135 | elision | 省略 | 省略 |
136 | exhaustiveness checking | 穷尽性检查,无遗漏检查 | 穷盡性檢查,無遺漏檢查 |
137 | expression | 表达式 | 表達式 |
138 | expression-oriented language | 面向表达式的语言 | 面向表達式的語言 |
139 | explicit | 显式 | 明確 |
140 | explicit discriminator | 显式的辨别值 | 明確的辨別值 |
141 | explicit type conversion | 显式类型转换 | 明確型別轉換 |
142 | extension | 扩展名 | 副檔名 |
143 | extern | 外,外部 | 外,外部 | 作关键字时不译
144 | **F** | | |
145 | fat pointer | 胖指针 | 胖指標 |
146 | feature gate | 功能开关 | 功能開關 |
147 | field | 字段 | 欄位 |
148 | field-level mutability | 字段级别可变性 | 欄位級別可變性 |
149 | file | 文件 | 檔案 |
150 | fmt | 格式化,是 format 的缩写 | 格式化,是 format 的縮寫 |
151 | formatter | 格式化程序,格式化工具,格式器 | 格式化程式,格式化工具,格式器 |
152 | floating-point number | 浮点数 | 浮點數 |
153 | flow control | 流程控制 | 流程控制 |
154 | Foreign Function Interface(FFI)| 外部语言函数接口 | 外部語言函式介面 |
155 | fragment specifier | 片段分类符 | 片段分類符 |
156 | free variable | 自由变量 | 自由變數 |
157 | freeze | 冻结 | 冷凍 |
158 | function | 函数 | 函式 |
159 | function declaration | 函数声明 | 函式宣告 |
160 | functional | 函数式 | 函數式 |
161 | **G** | | |
162 | garbage collector | 垃圾回收 | 垃圾回收 |
163 | generalize | 泛化,泛型化 | 泛化,泛型化 |
164 | generator | 生成器 | 產生器 |
165 | generic | 泛型 | 泛型 |
166 | generic type | 泛型类型 | 泛型型別 |
167 | global variable | 全局变量 | 全域變數 |
168 | growable | 可增长的 | 可增長的 |
169 | guard | 守卫 | 守護 |
170 | **H** | | |
171 | handle error | 句柄错误 | 處理錯誤 |
172 | hash | 哈希,哈希值,散列 | 雜湊,雜湊值,散列 |
173 | hash map | 散列映射,哈希表 | 雜湊映射,雜湊表 |
174 | heap | 堆 | 堆積 |
175 | hierarchy | 层次,分层,层次结构 | 層次,分層,層次結構 |
176 | higher rank lifetime | 高阶生命周期 | 高階生命週期 |
177 | higher rank trait bound | 高阶特质约束 | 高階特質約束 |
178 | higher rank type | 高阶类型 | 高階型別 |
179 | hygiene | 卫生 | 衛生 |
180 | hygienic macro system | 卫生宏系统 | 衛生巨集系統 |
181 | **I** | | |
182 | ICE | 编译内部错误 | 編譯器內部錯誤 | internal compiler error 的缩写
183 | immutable | 不可变的 | 不可變的 |
184 | implement | 实现 | 實作 |
185 | implementor | 实现者 | 實作者 |
186 | implicit | 隐式 | 隱含 |
187 | implicit discriminator | 隐式的辨别值 | 隱含的辨別值 |
188 | implicit type conversion | 隐式类型转换 | 隱含型別轉換 |
189 | import | 导入 | 匯入 |
190 | in assignment | 在赋值(语句) | 在指派(陳述式),在賦值(陳述式) |
191 | indent | 缩进 | 縮排,定位點 |
192 | index | 索引 | 索引 | 英语复数形式:indices
193 | infer | 推导(动词) | 推論(動詞) |
194 | inference | 推导(名词) | 推論(名詞) |
195 | inherited mutability | 承袭可变性 | 承襲可變性 |
196 | inheritance | 继承 | 繼承 |
197 | integrated development
environment(IDE) | 集成开发环境 | 整合開發環境 | 中文著作中通常直接写成 IDE
198 | integration-style test | 集成测试 | 集成測試 |
199 | interior mutability | 内部可变性 | 內部可變性 |
200 | installer | 安装程序,安装器 | 安裝程式,安裝器 |
201 | instance | 实例 | 實例 |
202 | instance method | 实例方法 | 實例方法 |
203 | integer | 整型,整数 | 整型,整數 |
204 | interact | 相互作用,相互影响 | 相互作用,相互影響 |
205 | interior mutability | 内部可变性 | 內部可變性 |
206 | intrinsic | 固有的 | 固有的 |
207 | invariant | 不变的(与协变、逆变并列);
保证(陈述一个应当被保持的条件)| 不變的(與協變、逆變並列);
保證(陳述一個應當被保持的條件)|
208 | invoke | 调用 | 呼叫 |
209 | item | 项,条目,项目 | 項,條目,項目 |
210 | iterate | 重复 | 重複 |
211 | iteration | 迭代 | 疊代 |
212 | iterator | 迭代器 | 疊代器 |
213 | iterator adaptors | 迭代器适配器 | 疊代器配接器 |
214 | iterator invalidation | 迭代器失效 | 疊代器無效 |
215 | **L** | | |
216 | LHS | 左操作数 | 左操作數 | left-hand side 的非正式缩写,
与 RHS 相对
217 | lender | 借出者 | 借出者 |
218 | library | 库 | 函式庫,程式庫 |
219 | lifetime | 生存时间,寿命,生命周期 | 生存時間,壽命,生命週期 |
220 | lifetime elision | 生命周期省略 | 生命週期省略 |
221 | link | 链接 | 連結,鏈結 |
222 | linked-list | 链表 | 鏈結串列 |
223 | linker | 链接器 | 鏈結器,連結器 |
224 | lint | (不译) | (不譯) | lint 英文本义是“纱布,绒毛”,此词在
计算机领域中表示程序代码中可疑和
不具结构性的片段,参见 [Wikipedia](https://en.wikipedia.org/wiki/Lint_%28software%29) |
225 | list | 列表 | 清單 |
226 | listener | 监听器 | 監聽器 |
227 | literal | 数据,常量数据,字面值,字面量,
字面常量,字面上的 | 資料,常量資料,字面值,字面量,
字面常量,字面上的 | 英文意思:字面意义的(内容)
228 | LLVM | (不译) | (不譯) | Low Level Virtual Machine 的缩写,
是构建编译器的系统
229 | loop | 循环 | 迴圈 | 作关键字时不译
230 | low-level code | 底层代码 | 底層代碼 |
231 | low-level language | 底层语言 | 底層語言 |
232 | l-value | 左值 | 左值 |
233 | **M** | | |
234 | main function | main 函数,主函数 | main 函式,主函式 |
235 | macro | 宏 | 巨集 |
236 | map | 映射 | 映射 | 一般不译
237 | match guard | 匹配守卫 | 匹配守護 |
238 | memory | 内存 | 記憶體 |
239 | memory address | 内存地址 | 記憶體位址 |
240 | memory leak | 内存泄露 | 記憶體流失 |
241 | memory safe | 内存安全 | 記憶體安全 |
242 | meta | 原则,元 | 後設 |
243 | metadata | 元数据 | 後設資料,詮釋資料 |
244 | metaprogramming | 元编程 | 元程式設計,超程式設計,後設程式設計 |
245 | metavariable | 元变量 | 後設變數 |
246 | method call syntax | 方法调用语法 | 方法呼叫語法 |
247 | method chaining | 方法链 | 方法鏈 |
248 | method definition | 方法定义 | 方法定義 |
249 | mock object | 模拟对象 | 模擬物件 |
250 | modifier | 修饰符 | 修飾符 |
251 | module | 模块 | 模組 |
252 | monomorphization | 单态 | 單型 | mono: one, morph: form
253 | move | 移动,转移 | 移動,轉移 | 按照 Rust 所规定的内容,
英语单词 transfer 的意思
比 move 更贴合实际描述
参考:[Rust by Example](http://rustwiki.org/rust-by-example/scope/move.html)
254 | move semantics | 移动语义 | 移動語義 |
255 | mutability | 可变性 | 可變性 |
256 | mutable | 可变 | 可變 |
257 | mutable reference | 可变引用 | 可變參考,可變參照 |
258 | multiple bounds | 多重约束 | 多重約束 |
259 | mutiple patterns | 多重模式 | 多重模式 |
260 | **N** | | |
261 | namespace | 命名空间 | 命名空間 |
262 | nest | 嵌套 | 嵌套 |
263 | Nightly Rust | Rust 开发版 | Rust 開發版 | nightly本意是“每夜,每天晚上”,
指代码每天都更新
264 | NLL | 非词法生命周期 | 非詞法生命週期 | non lexical lifetime 的缩写,
一般不译
265 | non-copy type | 非复制类型 | 非複製型別 |
266 | non-generic | 非泛型 | 非泛型 |
267 | no-op | 空操作,空运算 | 空操作,空運算 | (此词出现在类型转换章节中)
268 | non-commutative | 非交换的 | 非交換的 |
269 | non-scalar cast | 非标量转换 | 非純量轉換 |
270 | notation | 符号,记号 | 符號,記號 |
271 | numeric | 数值,数字 | 數值,數字 |
272 | **O** | | |
273 | object | 对象 | 物件 |
274 | object code | 目标代码 | 目的碼 |
275 | object file | 目标文件 | 目的檔 |
276 | object-oriented programming | 面向对象程序设计 | 物件導向程式設計 | 常缩写成 OOP
277 | optimization | 优化 | 最佳化 |
278 | out-of-bounds accessing | 越界访问 | 越界存取 |
279 | orphan rule | 孤儿规则 | 孤兒規則 |
280 | overflow | 溢出,越界 | 溢出,越界 |
281 | own | 占有,拥有 | 占有,擁有 |
282 | owner | 所有者,拥有者 | 所有者,擁有者 |
283 | ownership | 所有权 | 所有權 |
284 | **P** | | |
285 | package manager | 包管理器,软件包管理器 | 套件管理員,軟體包管理器 |
286 | panic | (不译) |(不譯) | 此单词直接翻译是“恐慌”,
在 Rust 中用于不可恢复的错误处理
287 | parameter | 参量,参数,形参,形式参量(数) | 參數,形參,形式參數,形式引數 | 不严格区分的话, argument(参数)和
parameter(参量)可以互换地使用
288 | parametric polymorphism | 参数多态 | 參數多型 |
289 | parent scope | 父级作用域 | 父級作用域 |
290 | parentheses | 小括号,包括“(”和“)” | 小括號,包括“(”和“)” |
291 | parse | 分析,解析 | 分析,解析 |
292 | parser | (语法)分析器,解析器 | (語法)分析器,解析器 |
293 | pattern | 模式 | 模式 |
294 | pattern match | 模式匹配 | 模式匹配 |
295 | phantom type | 虚类型,虚位类型 | 虛擬型別,虛位型別 | phantom 相关的专有名词:
phantom bug 幻影指令
phantom power 幻象电源
参见:[Haskell](https://wiki.haskell.org/Phantom_type)、[Haskell/Phantom_type](https://en.wikibooks.org/wiki/Haskell/Phantom_types)、
[Rust/Phantom](http://rustwiki.org/rust-by-example/generics/phantom.html)、[stdlib/PhantomData](https://doc.rust-lang.org/std/marker/struct.PhantomData.html)
296 | platform | 平台 | 平台 |
297 | polymorphism | 多态 | 多型 |
298 | powershell |(不译) |(不譯) | Windows 系统的一种命令行外壳程序
和脚本环境
299 | possibility of absence | 不存在的可能性 | 不存在的可能性 |
300 | precede | 预先?,在...发生(或出现) | 在...之前 |
301 | prelude |(不译) |(不譯) | 预先导入模块,英文本意:序曲,前奏
302 | primitive types | 原生类型,基本类型,简单类型 | 原始型別,基本型別,簡單型別 |
303 | print | 打印 | 列印 |
304 | process | 进程 | 處理程序,行程 |
305 | procedural macros | 过程宏,程序宏 | 过程巨集,程序巨集 |
306 | project | 项目,工程 | 專案,工程 |
307 | prototype | 原型 | 原型 |
308 | **R** | | |
309 | race condition | 竞态条件 | 競態條件 |
310 | RAII | 资源获取即初始化(一般不译) | 資源獲取即初始化(一般不譯) | resource acquisition is initialization 的缩写
311 | range | 区间,范围 | 區間,範圍 |
312 | range expression | 区间表达式 | 區間表達式 |
313 | raw identifier | 原始标识符 | 原始識別符 |
314 | raw pointer | 原始指针,裸指针 | 原始指標,裸指標 |
315 | RC | 引用计数 | 參考計數,參照計數 | reference counted
316 | Reader | 读取器 | 讀取器 |
317 | recursive macro | 递归宏 | 遞迴巨集 |
318 | reference | 引用 | 參考,參照 |
319 | reference cycle | 引用循环 | 參考循環,參照循環 |
320 | release | 发布 | 發佈 |
321 | resource | 资源 | 資源 |
322 | resource leak | 资源泄露 | 資源漏失 |
323 | return | 返回 | 回傳,傳回 |
324 | return value | 返回值 | 回傳值,傳回值 |
325 | RHS | 右操作数 | 右操作數 | right-hand side 的非正式缩写,
与 LHS 相对
326 | root directory | 根目录 | 根目錄 |
327 | runtime | 运行时 | 執行時期 |
328 | runtime behavior | 运行时行为 | 執行時行為 |
329 | runtime overhead | 运行时开销 | 執行時開銷 |
330 | Rust | (不译) | (不譯) | 一种编程语言
331 | Rustacean | (不译) | (不譯) | 编写 Rust 的程序员或爱好者的通称
332 | rustc | (不译) | (不譯) | Rust 语言编译器
333 | r-value | 右值 | 右值 |
334 | **S** | | |
335 | scalar | 标量,数量 | 純量,數量 |
336 | schedule | 调度 | 排程 |
337 | scope | 作用域 | 作用域 |
338 | screen | 屏幕 | 螢幕 |
339 | script | 脚本 | 腳本,手稿 |
340 | segmenatation fault | 存储器段错误,存储器区段错误 | 記憶體段錯誤,記憶體區段錯誤 |
341 | semicolon | 分号,“;” | 分號,“;” |
342 | self | 自身,作关键字时不译 | 自身,作關鍵字時不譯 |
343 | shadow | 遮蔽,隐蔽,隐藏,覆盖 | 遮蔽,隱蔽,隱藏,覆蓋 |
344 | shallow copy | 浅拷贝,浅复制 | 浅複製,淺拷貝 |
345 | signature | 标记 | 簽名,簽章 |
346 | slice | 切片 | 切片 |
347 | smart pointer | 智能指针 | 智慧指標 |
348 | snake case | 蛇形命名 | 蛇形命名 | 参见:[Snake case](https://en.wikipedia.org/wiki/Snake_case)
349 | sound | 可靠 | 可靠 |
350 | soundness | 可靠性 | 可靠性 | 参见:[Soundness](https://en.wikipedia.org/wiki/Soundness)
351 | source file | 源文件 | 源檔案 |
352 | source code | 源代码 | 原始碼 |
353 | specialization | 泛型特化 | 泛型特化 |
354 | square | 平方,二次方,二次幂 | 平方,二次方,二次冪 |
355 | square brackets | 中括号,“[”和“]” | 方括號,“[”和“]” |
356 | src | (不译) | (不譯) | source 的缩写,指源代码
357 | stack | 栈 | 堆疊 |
358 | stack unwind | 栈解开、栈展开 | 堆疊展開,堆疊回溯 |
359 | statement | 语句 | 陳述式 |
360 | statically allocated | 静态分配 | 靜態分配 |
361 | statically allocated string | 静态分配的字符串 | 靜態分配的字串 |
362 | statically dispatch | 静态分发 | 靜態派發 |
363 | static method | 静态方法 | 靜態方法 |
364 | string | 字符串 | 字串 |
365 | string literal | 字符串常量 | 字串常數 |
366 | string slice | 字符串切片 | 字串切片 |
367 | stringify | 字符串化 | 字串化 |
368 | subscript notation | 下标 | 次序,下標表示法 |
369 | sugar | 糖 | 糖 |
370 | super | 父级,作关键字时不译 | 親類,作關鍵字時不譯 |
371 | syntax context | 语法上下文 | 語法上下文 |
372 | systems programming language | 系统级编程语言 | 系統程式設計語言 |
373 | **T** | | |
374 | tagged union | 标记联合 | 標記聯集 |
375 | target triple | 多层次指标,三层/重 指标/目标 | 三元目標描述 | triple 本义是“三”,但此处虚指“多”,
此词翻译需要更多讨论
376 | terminal | 终端 | 終端機 |
377 | testing | 测试 | 測試 |
378 | testsuit | 测试套件 | 測試套件 |
379 | test double | 测试替代 | 測試替身 |
380 | the least significant bit (LSB) | 最低有效位 | 最低有效位 |
381 | the most significant bit (MSB) | 最高有效位 | 最高有效位 |
382 | thread | 线程 | 執行緒 |
383 | TOML | (不译) | (不譯) | Tom's Obvious, Minimal Language
的缩写,一种配置语言
384 | token tree | 令牌树 | 標記樹 | 待进一步斟酌
385 | trait | 特质 | 特質 | 其字面上有“特性,特征”之意
386 | trait bound | 特质约束 | 特質約束 | bound 有“约束,限制,限定”之意
387 | trait object | 特质对象 | 特質物件 |
388 | transmute | (不译) | (不譯) | 其字面上有“变化,变形,变异”之意,
不作翻译
389 | trivial | 平凡的 | 平凡的 |
390 | troubleshooting | 疑难解答,故障诊断,
故障排除,故障分析 | 問題排除,故障診斷,
故障處理,故障分析 |
391 | tuple | 元组 | 元組 |
392 | two's complement | 补码,二补数 | 二補數,二補碼 |
393 | two-word object | 双字对象 | 雙字物件 |
394 | type annotation | 类型标注,类型注明/标记/标识 | 型別註解,型別標示/標註/標識 |
395 | type erasure | 类型擦除 | 型別擦除 |
396 | type inference | 类型推导 | 型別推論 |
397 | type inference engine | 类型推导引擎 | 型別推論引擎 |
398 | type parameter | 类型参量 | 型別參數 |
399 | type placeholder | 类型占位符 | 型別預留位置 |
400 | type signature | 类型标记 | 型別標誌 |
401 | **U** | | |
402 | undefined behavior | 未定义行为 | 未定義行為 |
403 | uninstall | 卸载 | 卸載 |
404 | unit-like struct | 类单元结构体 | 類單元結構體 |
405 | unit struct | 单元结构体 | 單元結構體 |
406 | "unit-style" tests | 单元测试 | 單元測試 |
407 | unit test | 单元测试 | 單元測試 |
408 | unit type | 单元类型 | 單元型別 |
409 | universal function call syntax
(UFCS) | 通用函数调用语法 | 通用函式呼叫語法 |
410 | unsized types | 不定长类型 | 不定長型別 |
411 | unwind | 展开 | 展開 |
412 | unwrap | 解包 | 解包 |
413 | **V** | | |
414 | variable | 变量 | 變數 |
415 | variable binding | 变量绑定 | 變數綁定 |
416 | variable shadowing | 变量遮蔽,变量隐蔽,
变量隐藏,变量覆盖 | 變數遮蔽,變數隱蔽,
變數隱藏,變數覆蓋|
417 | variable capture | 变量捕获 | 變數捕獲 |
418 | variant | 可变类型,变体 | 變体型,變體 |
419 | vector | (动态数组,一般不译) | (動態陣列,一般不譯) | vector 本义是“向量”
420 | visibility | 可见性 | 可見性 |
421 | vtable | 虚表 | 虛表 |
422 | **W** | | |
423 | where clause | where 子句,where 从句,where 分句 | where 子句,where 從句,where 分句 | 在数据库的官方手册中多翻译成“子句”,英语语法中翻译成“从句”
424 | wildcard | 通配符 | 萬用字元 |
425 | wrap | 包裹 | 包裹 |
426 | wrapped | 装包 | 裝包 |
427 | wrapper | 装包 | 裝飾器,包裹器 |
428 | **Y** | | |
429 | yield | 产生(收益、效益等),产出,提供 | 產生(收益、效益等),產出,提供|
430 | **Z** | | |
431 | zero-cost abstractions | 零开销抽象 | 零開銷抽象 |
432 | zero-width space(ZWSP) | 零宽空格 | 零寬空格 |
433 |
--------------------------------------------------------------------------------