From a0c941edb3fdb11d19b71d03e1b7c1f956d0da94 Mon Sep 17 00:00:00 2001 From: donjuanplatinum <113148619+donjuanplatinum@users.noreply.github.com> Date: Wed, 13 Dec 2023 15:28:40 +0000 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0union=E5=85=B3=E9=94=AE?= =?UTF-8?q?=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/appendix/keywords.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/appendix/keywords.md b/src/appendix/keywords.md index cf5be6d0..b211ddad 100644 --- a/src/appendix/keywords.md +++ b/src/appendix/keywords.md @@ -40,6 +40,7 @@ - `trait` - 定义一个特征 - `true` - 布尔值 `true` - `type` - 定义一个类型别名或关联类型 +- `union` - Rust 等价于 c 风格的 union - `unsafe` - 表示不安全的代码、函数、特征或实现 - `use` - 在当前代码范围内(模块或者花括号对)引入外部的包、模块等 - `where` - 表示一个约束类型的从句