Expand description
第一章:Rust语言基础 1.4 语法面面观(二):面向表达式(中)
Functions§
- array_
chunk_ show - array chunk 演示
- const_
array_ len - const fn
- const_
fib - const fn : fib
- const_
fn_ - const fn
- const_
fn_ error - 展示错误的 const 求值用法
- const_
generic_ show - const generic
- fixed_
const_ fn_ error - 修正错误的 const 求值用法
- if_
while_ true - If True && While True
- mir_
show - 编译期计算原理:MIR 展示
- must_
const_ expr - 必须是常量表达式才能在常量上下文使用
- others_
const_ fn - 其他的Const fn 用法