Skip to content

Commit

Permalink
Update chapter_1.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lispking committed Apr 19, 2024
1 parent d1c2df8 commit 8a5d144
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/chapter_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

其中核心的一部分是 Rust 的枚举类型(`enum`),它比其他语言中的枚举类型具有更强的表达能力,并且允许使用[代数数据类型]

Rust 类型系统的另一个核心支柱是特征(`trait`)类型。特征大致等同于其他语言中的接口类型,但它们也与 Rust 的 _泛型_第12条)相关联,允许在不产生运行时开销的情况下重用接口。
Rust 类型系统的另一个核心支柱是特征(`trait`)类型。特征大致等同于其他语言中的接口类型,但它们也与 Rust 的 _泛型_[方法 12])相关联,允许在不产生运行时开销的情况下重用接口。

[OCaml]: https://ocaml.org/
[Haskell]: https://www.haskell.org/
[代数数据类型]: https://en.wikipedia.org/wiki/Algebraic_data_type
[代数数据类型]: https://en.wikipedia.org/wiki/Algebraic_data_type
[方法 12]: https://www.lurklurk.org/effective-rust/generics.html

0 comments on commit 8a5d144

Please sign in to comment.