第12章 类型转换

类型转换 — Rust By Practice

内容来源 · Rust By Practice / Rust 语言实战

原文链接: https://practice-rust-zh.beatai.org/type-conversions/intro.html

类型转换

There are several ways we can use to perform type conversions, such as as, From/Intro, TryFrom/TryInto, transmute etc.


01-as

as — Rust By Practice

02-From/Into

From/Into — Rust By Practice

03-其它转换

其它转换 — Rust By Practice

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