Rust 语言入门 Introduction to Rust

其它表达式

还有更多类型的表达式, 它们被分散在其它章节, 下面我们列出了对应的索引位置.

字面量表达式 Literal expression

参考以下链接:

  • 整数类型 integers
  • 浮点类型 float
  • 布尔类型 boolean
  • 字符 char
  • 字符串常量

数组及其索引 Array

参考 数组

元组及其索引 Tuple

参考 元组

结构体 Struct 以及访问成员变量 Field-access

参考 调用结构体的方法

闭包 Closure 及方法调用表达式 Method-call

参考 closure

范围表达式 Range Expression

参考 Range

await 表达式

参考 理解 async/await