4.2.1 原始类型

01-原始类型 — Comprehensive Rust

译文 · 基于 Comprehensive Rust

原文链接: https://google.github.io/comprehensive-rust/android/aidl/types/primitives.html

4.2.1 原始类型

原始类型(大多)按习惯方式映射:

AIDL 类型Rust 类型说明
booleanbool
bytei8注意 byte 是有符号的。
charu16注意使用的是 u16,不是 u32。
inti32
longi64
floatf32
doublef64
StringString
最后修改 August 11, 2026: 更新 (70a5af133)