第5章 类型系统

类型系统 — Rust By Example

译文 · 基于 Rust By Example

原文链接: https://doc.rust-lang.org/stable/rust-by-example/types.html

类型系统

Rust 提供了多种机制,用于改变或定义原生类型和用户定义类型。接下来会讲到:


01-类型转换

类型转换 — Rust By Example

02-字面量

字面量 — Rust By Example

03-类型推断

类型推断 — Rust By Example

04-别名

别名 — Rust By Example

最后修改 August 21, 2026: 更新 (76fc81a2e)