原生类型

    • 无符号整型(unsigned integers): u8u16u32u64usize(指针宽 度)
    • 浮点类型(floating point): 、f64
    • char(字符):单个 Unicode 字符,如 'a''α''∞'(每个都是 4 字节)
    • 单元类型(unit type):()。其唯一可能的值就是 这个空元组

    复合类型(compound type)

    • 数组(array):如 [1, 2, 3]
    • 元组(tuple):如 (1, true)